diff options
| author | Raymond Hettinger <python@rcn.com> | 2015-10-09 01:14:15 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2015-10-09 01:14:15 (GMT) |
| commit | 9c90e255e02b493de6c792fc1fb92a44e202ebd3 (patch) | |
| tree | 2e14bcf9c2304a4b2d4bae449db66e09cb67ab51 /Objects | |
| parent | 840c82ee8883d455a57b1505a2d47a10f89665c1 (diff) | |
| download | cpython-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.c | 2 |
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) { |
