[Python-checkins] r74311 - in python/branches/py3k/Objects: abstract.c memoryobject.c

georg.brandl python-checkins at python.org
Tue Aug 4 22:29:27 CEST 2009


Author: georg.brandl
Date: Tue Aug  4 22:29:27 2009
New Revision: 74311

Log:
Slightly improve buffer-related error message.

Modified:
   python/branches/py3k/Objects/abstract.c
   python/branches/py3k/Objects/memoryobject.c

Modified: python/branches/py3k/Objects/abstract.c
==============================================================================
--- python/branches/py3k/Objects/abstract.c	(original)
+++ python/branches/py3k/Objects/abstract.c	Tue Aug  4 22:29:27 2009
@@ -331,7 +331,7 @@
 {
 	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;
 	}

Modified: python/branches/py3k/Objects/memoryobject.c
==============================================================================
--- python/branches/py3k/Objects/memoryobject.c	(original)
+++ python/branches/py3k/Objects/memoryobject.c	Tue Aug  4 22:29:27 2009
@@ -255,7 +255,7 @@
 
     if (!PyObject_CheckBuffer(obj)) {
         PyErr_SetString(PyExc_TypeError,
-                        "object does not have the buffer interface");
+                        "object does not support the buffer interface");
         return NULL;
     }
 


More information about the Python-checkins mailing list