diff Objects/bufferobject.c @ 48193:0bf6c42ab4e4 legacy-trunk

Change the warning emitted for using the buffer() object; memoryview() in 3.0 is not an equivalent.
author Brett Cannon <bcannon@gmail.com>
date Fri, 08 Aug 2008 04:15:53 +0000
parents c4d24fc8ba8a
children fd25030223b0
line wrap: on
line diff
--- a/Objects/bufferobject.c	Thu Aug 07 18:51:38 2008 +0000
+++ b/Objects/bufferobject.c	Fri Aug 08 04:15:53 2008 +0000
@@ -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))