diff --git a/Python/getargs.c b/Python/getargs.c index 9b1207f04ee..3a5ef8d9594 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -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) {