Fix error messages for buffer objects to say "bytes" instead of "string".
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 @@
*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;