diff Python/getargs.c @ 43560:ac62eb267206

Remove the buffer API from PyUnicode as specified by PEP 3137. Also, fix the error message of the 't' format unit, in getargs.c, so that it asks for bytes, instead of string.
author Alexandre Vassalotti <alexandre@peadrop.com>
date Sun, 14 Oct 2007 02:05:51 +0000
parents 8e72dacf7f3a
children 003d35215ef2
line wrap: on
line diff
--- a/Python/getargs.c	Sat Oct 13 23:23:58 2007 +0000
+++ b/Python/getargs.c	Sun Oct 14 02:05:51 2007 +0000
@@ -1252,7 +1252,7 @@
 				arg, msgbuf, bufsize);
 		if (pb == NULL || pb->bf_getbuffer == NULL)
 			return converterr(
-				"string or read-only character buffer",
+				"bytes or read-only character buffer",
 				arg, msgbuf, bufsize);
 
 		if ((*pb->bf_getbuffer)(arg, &view, PyBUF_SIMPLE) != 0)