diff options
author | Georg Brandl <georg@python.org> | 2009-08-04 20:29:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-08-04 20:29:27 (GMT) |
commit | 61b96dc2fe814595651b6e1af394b34cb41fb485 (patch) | |
tree | 2ceb388e9f864705ca20209b1c34f0ac1089143a /Objects/abstract.c | |
parent | 3eb562ba4888bc1661c41fda35b1e4229f4a69aa (diff) | |
download | cpython-61b96dc2fe814595651b6e1af394b34cb41fb485.zip cpython-61b96dc2fe814595651b6e1af394b34cb41fb485.tar.gz cpython-61b96dc2fe814595651b6e1af394b34cb41fb485.tar.bz2 |
Slightly improve buffer-related error message.
Diffstat (limited to 'Objects/abstract.c')
-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 3b2de9d..5247824 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -331,7 +331,7 @@ PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags) { if (!PyObject_CheckBuffer(obj)) { PyErr_Format(PyExc_TypeError, - "'%100s' does not have the buffer interface", + "'%100s' does not support the buffer interface", Py_TYPE(obj)->tp_name); return -1; } |