Mercurial > cpython-lru_cache-weakref
diff Objects/codeobject.c @ 46573:aef3501d8e77 legacy-trunk
Use PyErr_WarnPy3k throughout
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 27 Apr 2008 03:01:45 +0000 |
| parents | 84bb7701efba |
| children | 7670005da8c5 |
line wrap: on
line diff
--- a/Objects/codeobject.c Sun Apr 27 02:28:02 2008 +0000 +++ b/Objects/codeobject.c Sun Apr 27 03:01:45 2008 +0000 @@ -340,10 +340,8 @@ /* 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) { + if (PyErr_WarnPy3k("code inequality comparisons not supported " + "in 3.x", 1) < 0) { return NULL; }
