From d5b635f1969fdd609f0aff5669c9ec30e61be62e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 25 Mar 2008 08:29:14 +0000 Subject: Make Py3k warnings consistent w.r.t. punctuation; also respect the EOL 80 limit and supply more alternatives in warning messages. --- Objects/codeobject.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Objects/codeobject.c') 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; } -- cgit v1.2.1