Author: Armin Rigo <[email protected]>
Branch:
Changeset: r3181:eb6ae6bf3c61
Date: 2019-01-08 09:26 +0100
http://bitbucket.org/cffi/cffi/changeset/eb6ae6bf3c61/
Log: improve error message
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -3147,8 +3147,9 @@
return 2; /* ffi.gc() */
}
PyErr_SetString(PyExc_ValueError,
- "only 'cdata' object from ffi.new(), ffi.gc() or ffi.from_buffer() "
- "can be used with the 'with' keyword or ffi.release()");
+ "only 'cdata' object from ffi.new(), ffi.gc(), ffi.from_buffer() "
+ "or ffi.new_allocator()() can be used with the 'with' keyword or "
+ "ffi.release()");
return -1;
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit