]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change the warning emitted for using the buffer() object; memoryview() in 3.0
authorBrett Cannon <bcannon@gmail.com>
Fri, 8 Aug 2008 04:15:53 +0000 (04:15 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 8 Aug 2008 04:15:53 +0000 (04:15 +0000)
is not an equivalent.

Objects/bufferobject.c

index 9a5c39f6f4c4369435f442ee333b43cf069c5ba0..5b08e1eaefb0cf88f058f5562cd7f75b3c25677a 100644 (file)
@@ -236,8 +236,7 @@ buffer_new(PyTypeObject *type, PyObject *args, PyObject *kw)
        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))