Mercurial > cpython-lru_cache-weakref
diff Objects/bufferobject.c @ 46075:84bb7701efba legacy-trunk
Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 25 Mar 2008 08:29:14 +0000 |
| parents | 9b3f0fa5d8ca |
| children | 2a866ea66509 |
line wrap: on
line diff
--- a/Objects/bufferobject.c Tue Mar 25 07:56:27 2008 +0000 +++ b/Objects/bufferobject.c Tue Mar 25 08:29:14 2008 +0000 @@ -231,7 +231,8 @@ { if (Py_Py3kWarningFlag && PyErr_WarnEx(PyExc_DeprecationWarning, - "buffer will be removed in 3.x", 1) < 0) + "buffer() not supported in 3.x; " + "use memoryview()", 1) < 0) return NULL; PyObject *ob;
