mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
string -> bytes in error message #4745
This commit is contained in:
parent
71e30a0438
commit
81d90a220f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue