summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-10-09 01:14:15 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-10-09 01:14:15 (GMT)
commit9c90e255e02b493de6c792fc1fb92a44e202ebd3 (patch)
tree2e14bcf9c2304a4b2d4bae449db66e09cb67ab51 /Objects
parent840c82ee8883d455a57b1505a2d47a10f89665c1 (diff)
downloadcpython-9c90e255e02b493de6c792fc1fb92a44e202ebd3.zip
cpython-9c90e255e02b493de6c792fc1fb92a44e202ebd3.tar.gz
cpython-9c90e255e02b493de6c792fc1fb92a44e202ebd3.tar.bz2
Issue #25326: Improve an obscure error message.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 6e289ef..ad7889e 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -259,7 +259,7 @@ PyObject_AsCharBuffer(PyObject *obj,
pb->bf_getcharbuffer == NULL ||
pb->bf_getsegcount == NULL) {
PyErr_SetString(PyExc_TypeError,
- "expected a character buffer object");
+ "expected a string or other character buffer object");
return -1;
}
if ((*pb->bf_getsegcount)(obj,NULL) != 1) {