diff options
author | Georg Brandl <georg@python.org> | 2008-03-25 08:29:14 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-25 08:29:14 +0000 |
commit | d5b635f1969fdd609f0aff5669c9ec30e61be62e (patch) | |
tree | 1c854f8108e2b22d8c5ba4d529b6d99cd9f5f244 /Objects/codeobject.c | |
parent | 80055f6295dd48274ae68d13806c7ee3c5b5882f (diff) | |
download | cpython-git-d5b635f1969fdd609f0aff5669c9ec30e61be62e.tar.gz |
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/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 57cd2e6264..33b4610c74 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -338,9 +338,12 @@ code_richcompare(PyObject *self, PyObject *other, int op) !PyCode_Check(self) || !PyCode_Check(other)) { - /* Py3K warning if types are not equal and comparison isn't == or != */ - if (Py_Py3kWarningFlag && PyErr_Warn(PyExc_DeprecationWarning, - "code inequality comparisons not supported in 3.x.") < 0) { + /* Py3K warning if types are not equal and comparison + isn't == or != */ + if (Py_Py3kWarningFlag && + PyErr_Warn(PyExc_DeprecationWarning, + "code inequality comparisons not supported " + "in 3.x") < 0) { return NULL; } |