diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-27 03:01:45 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-27 03:01:45 +0000 |
commit | 9f4f48114fbf2df3803a44a30cd14e11679403fe (patch) | |
tree | 701fc350aa3a6ebf282fdb92e891c793f65db0fb /Objects/methodobject.c | |
parent | a692c4df63a41c42f2ce10a4521136d1440a712d (diff) | |
download | cpython-git-9f4f48114fbf2df3803a44a30cd14e11679403fe.tar.gz |
Use PyErr_WarnPy3k throughout
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index e641df12fe..240cc05d46 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -235,10 +235,8 @@ meth_richcompare(PyObject *self, PyObject *other, int op) !PyCFunction_Check(other)) { /* Py3K warning if types are not equal and comparison isn't == or != */ - if (Py_Py3kWarningFlag && - PyErr_Warn(PyExc_DeprecationWarning, - "builtin_function_or_method inequality " - "comparisons not supported in 3.x") < 0) { + if (PyErr_WarnPy3k("builtin_function_or_method inequality " + "comparisons not supported in 3.x", 1) < 0) { return NULL; } |