mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
This commit is contained in:
parent
80055f6295
commit
d5b635f196
16 changed files with 67 additions and 54 deletions
|
|
@ -231,7 +231,8 @@ buffer_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
{
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue