From: Brett Cannon Date: Fri, 8 Aug 2008 04:15:53 +0000 (+0000) Subject: Change the warning emitted for using the buffer() object; memoryview() in 3.0 X-Git-Tag: v2.6b3~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0563a8ffd14c685fe1bf155e120b67a5e9311570;p=thirdparty%2FPython%2Fcpython.git Change the warning emitted for using the buffer() object; memoryview() in 3.0 is not an equivalent. --- diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index 9a5c39f6f4c4..5b08e1eaefb0 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -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))