Skip to content

Commit

Permalink
string -> bytes in error message python#4745
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Dec 27, 2008
1 parent 71e30a0 commit 81d90a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/getargs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 81d90a2

Please sign in to comment.