summaryrefslogtreecommitdiffstats
path: root/Objects/bufferobject.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-08 04:15:53 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-08 04:15:53 (GMT)
commit0563a8ffd14c685fe1bf155e120b67a5e9311570 (patch)
tree3f8814e1caabaf5dd90ebb43a6dfdb6523e6074a /Objects/bufferobject.c
parentd69390107a7e5e42c2cfae34fa79282a751d2dac (diff)
downloadcpython-0563a8ffd14c685fe1bf155e120b67a5e9311570.zip
cpython-0563a8ffd14c685fe1bf155e120b67a5e9311570.tar.gz
cpython-0563a8ffd14c685fe1bf155e120b67a5e9311570.tar.bz2
Change the warning emitted for using the buffer() object; memoryview() in 3.0
is not an equivalent.
Diffstat (limited to 'Objects/bufferobject.c')
-rw-r--r--Objects/bufferobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c
index 9a5c39f..5b08e1e 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))