]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Slightly improve buffer-related error message.
authorGeorg Brandl <georg@python.org>
Tue, 4 Aug 2009 20:29:27 +0000 (20:29 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 4 Aug 2009 20:29:27 +0000 (20:29 +0000)
Objects/abstract.c
Objects/memoryobject.c

index 3b2de9d6c1fe6bd92130a75bc2d4574e662391d0..52478247706666c355237287c54705d492b7844d 100644 (file)
@@ -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;
        }
index 2990c256384c76cbe5837a9e082a087a1fbfc16b..7acd569d73bf4e5160bc47dbac735b11a3f91619 100644 (file)
@@ -255,7 +255,7 @@ PyMemoryView_GetContiguous(PyObject *obj, int buffertype, char fort)
 
     if (!PyObject_CheckBuffer(obj)) {
         PyErr_SetString(PyExc_TypeError,
-                        "object does not have the buffer interface");
+                        "object does not support the buffer interface");
         return NULL;
     }