mirror of https://github.com/python/cpython.git
string -> bytes in error message #4745
This commit is contained in:
parent
71e30a0438
commit
81d90a220f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue