commit | 9f4f48114fbf2df3803a44a30cd14e11679403fe | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Apr 27 03:01:45 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Apr 27 03:01:45 2008 +0000 |
tree | 701fc350aa3a6ebf282fdb92e891c793f65db0fb | |
parent | a692c4df63a41c42f2ce10a4521136d1440a712d [diff] [blame] |
Use PyErr_WarnPy3k throughout
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index f4c69a0..37d9bcb 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c
@@ -233,9 +233,7 @@ Py_ssize_t offset = 0; Py_ssize_t size = Py_END_OF_BUFFER; - if (Py_Py3kWarningFlag && - PyErr_WarnEx(PyExc_DeprecationWarning, - "buffer() not supported in 3.x; " + if (PyErr_WarnPy3k("buffer() not supported in 3.x; " "use memoryview()", 1) < 0) return NULL;