mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Use PyErr_WarnPy3k throughout
This commit is contained in:
parent
a692c4df63
commit
9f4f48114f
14 changed files with 47 additions and 88 deletions
|
|
@ -340,10 +340,8 @@ code_richcompare(PyObject *self, PyObject *other, int op)
|
|||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue