string -> bytes in error message #4745

This commit is contained in:
Benjamin Peterson 2008-12-27 02:58:34 +00:00
parent 71e30a0438
commit 81d90a220f
1 changed files with 1 additions and 1 deletions

View File

@ -1392,7 +1392,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg)
Py_ssize_t count;
PyBufferProcs *pb = arg->ob_type->tp_as_buffer;
if (pb == NULL) {
*errmsg = "string or buffer";
*errmsg = "bytes or buffer";
return -1;
}
if (pb->bf_getbuffer) {