summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 9b1207f..3a5ef8d 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) {