diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-10-14 02:05:51 +0000 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2007-10-14 02:05:51 +0000 |
commit | 70a237179f1213b0c180898b6e1f0b6c4e9cd11c (patch) | |
tree | a0d454e61877a808e682ab90d2cc268d4ce5f23c /Python/getargs.c | |
parent | 659e7f44e2f0bc92db8b4e33fb6bae429dcbd205 (diff) | |
download | cpython-git-70a237179f1213b0c180898b6e1f0b6c4e9cd11c.tar.gz |
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.
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index de9cc93afa..4bcc1757b6 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1252,7 +1252,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, 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) |