Author: guido.van.rossum
Date: Wed Nov 21 22:53:51 2007
New Revision: 59101

Modified:
   python/branches/py3k/Python/getargs.c
Log:
Fix error messages for buffer objects to say "bytes" instead of "string".


Modified: python/branches/py3k/Python/getargs.c
==============================================================================
--- python/branches/py3k/Python/getargs.c       (original)
+++ python/branches/py3k/Python/getargs.c       Wed Nov 21 22:53:51 2007
@@ -1267,12 +1267,12 @@
         *p = NULL;
        if (pb == NULL ||
            pb->bf_getbuffer == NULL) {
-               *errmsg = "string or read-only buffer";
+               *errmsg = "bytes or read-only buffer";
                return -1;
        }
 
        if ((*pb->bf_getbuffer)(arg, &view, PyBUF_SIMPLE) != 0) {
-               *errmsg = "string or single-segment read-only buffer";
+               *errmsg = "bytes or single-segment read-only buffer";
                return -1;
        }
         count = view.len;
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to