Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81d90a2

Browse files
committed
string -> bytes in error message #4745
1 parent 71e30a0 commit 81d90a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/getargs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ getbuffer(PyObject *arg, Py_buffer *view, char **errmsg)
13921392
Py_ssize_t count;
13931393
PyBufferProcs *pb = arg->ob_type->tp_as_buffer;
13941394
if (pb == NULL) {
1395-
*errmsg = "string or buffer";
1395+
*errmsg = "bytes or buffer";
13961396
return -1;
13971397
}
13981398
if (pb->bf_getbuffer) {

0 commit comments

Comments
 (0)