Author: travis.oliphant
Date: Sat Aug 18 12:15:58 2007
New Revision: 57179
Modified:
python/branches/py3k-buffer/Python/getargs.c
Log:
Fixes so that all tests pass (that pass in py3k)
Modified: python/branches/py3k-buffer/Python/getargs.c
==============================================================================
--- python/branches/py3k-buffer/Python/getargs.c (original)
+++ python/branches/py3k-buffer/Python/getargs.c Sat Aug 18 12:15:58 2007
@@ -1222,7 +1222,7 @@
"string or read-only character buffer",
arg, msgbuf, bufsize);
- if ((*pb->bf_getbuffer)(arg, &view, PyBUF_SIMPLE) != 0)
+ if ((*pb->bf_getbuffer)(arg, &view, PyBUF_CHARACTER) != 0)
return converterr("string or single-segment read-only
buffer",
arg, msgbuf, bufsize);
@@ -1257,6 +1257,7 @@
Py_ssize_t count;
PyBuffer view;
+ *errmsg = NULL;
*p = NULL;
if (pb == NULL ||
pb->bf_getbuffer == NULL) {
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins