[Python-checkins] r65584 - python/trunk/Objects/bufferobject.c

brett.cannon python-checkins at python.org
Fri Aug 8 06:15:54 CEST 2008


Author: brett.cannon
Date: Fri Aug  8 06:15:53 2008
New Revision: 65584

Log:
Change the warning emitted for using the buffer() object; memoryview() in 3.0
is not an equivalent.


Modified:
   python/trunk/Objects/bufferobject.c

Modified: python/trunk/Objects/bufferobject.c
==============================================================================
--- python/trunk/Objects/bufferobject.c	(original)
+++ python/trunk/Objects/bufferobject.c	Fri Aug  8 06:15:53 2008
@@ -236,8 +236,7 @@
 	Py_ssize_t offset = 0;
 	Py_ssize_t size = Py_END_OF_BUFFER;
 
-	if (PyErr_WarnPy3k("buffer() not supported in 3.x; "
-			 "use memoryview()", 1) < 0)
+	if (PyErr_WarnPy3k("buffer() not supported in 3.x", 1) < 0)
 		return NULL;
 	
 	if (!_PyArg_NoKeywords("buffer()", kw))


More information about the Python-checkins mailing list