diff options
author | Guido van Rossum <guido@python.org> | 2007-11-21 21:53:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-11-21 21:53:51 (GMT) |
commit | b08340053cb10af7290628ed624e4f7ec6be398b (patch) | |
tree | 309137c4db05362851f83af36b7979bac709925c | |
parent | 1898084afabc78f962e515293e1382b7eb8e95aa (diff) | |
download | cpython-b08340053cb10af7290628ed624e4f7ec6be398b.zip cpython-b08340053cb10af7290628ed624e4f7ec6be398b.tar.gz cpython-b08340053cb10af7290628ed624e4f7ec6be398b.tar.bz2 |
Fix error messages for buffer objects to say "bytes" instead of "string".
-rw-r--r-- | Python/getargs.c | 4 |
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; |