Commit 81d90a22 authored by Benjamin Peterson's avatar Benjamin Peterson

string -> bytes in error message #4745

parent 71e30a04
...@@ -1392,7 +1392,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg) ...@@ -1392,7 +1392,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg)
Py_ssize_t count; Py_ssize_t count;
PyBufferProcs *pb = arg->ob_type->tp_as_buffer; PyBufferProcs *pb = arg->ob_type->tp_as_buffer;
if (pb == NULL) { if (pb == NULL) {
*errmsg = "string or buffer"; *errmsg = "bytes or buffer";
return -1; return -1;
} }
if (pb->bf_getbuffer) { if (pb->bf_getbuffer) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment