diff options
author | Georg Brandl <georg@python.org> | 2008-03-25 08:29:14 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-25 08:29:14 (GMT) |
commit | d5b635f1969fdd609f0aff5669c9ec30e61be62e (patch) | |
tree | 1c854f8108e2b22d8c5ba4d529b6d99cd9f5f244 /Objects/bufferobject.c | |
parent | 80055f6295dd48274ae68d13806c7ee3c5b5882f (diff) | |
download | cpython-d5b635f1969fdd609f0aff5669c9ec30e61be62e.zip cpython-d5b635f1969fdd609f0aff5669c9ec30e61be62e.tar.gz cpython-d5b635f1969fdd609f0aff5669c9ec30e61be62e.tar.bz2 |
Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
Diffstat (limited to 'Objects/bufferobject.c')
-rw-r--r-- | Objects/bufferobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index 0a818d6..fb7e1ef 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -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; |