summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index d268104..48860cc 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -1267,12 +1267,12 @@ convertbuffer(PyObject *arg, void **p, char **errmsg)
*p = NULL;
if (pb == NULL ||
pb->bf_getbuffer == NULL) {
- *errmsg = "string or read-only buffer";
+ *errmsg = "bytes or read-only buffer";
return -1;
}
if ((*pb->bf_getbuffer)(arg, &view, PyBUF_SIMPLE) != 0) {
- *errmsg = "string or single-segment read-only buffer";
+ *errmsg = "bytes or single-segment read-only buffer";
return -1;
}
count = view.len;