Change the warning emitted for using the buffer() object; memoryview() in 3.0

is not an equivalent.
This commit is contained in:
Brett Cannon 2008-08-08 04:15:53 +00:00
parent d69390107a
commit 0563a8ffd1
1 changed files with 1 additions and 2 deletions

View 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))