Mercurial > cpython-lru_cache-weakref
diff Objects/bufferobject.c @ 46573:aef3501d8e77 legacy-trunk
Use PyErr_WarnPy3k throughout
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 27 Apr 2008 03:01:45 +0000 |
| parents | 2a866ea66509 |
| children | 4fe192d48960 |
line wrap: on
line diff
--- a/Objects/bufferobject.c Sun Apr 27 02:28:02 2008 +0000 +++ b/Objects/bufferobject.c Sun Apr 27 03:01:45 2008 +0000 @@ -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;
