summaryrefslogtreecommitdiff
path: root/Objects/methodobject.c
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2011-08-10 20:28:54 -0500
committerBrian Curtin <brian@python.org>2011-08-10 20:28:54 -0500
commit174958263e0e4854bb560dd8609a76e797cc66f7 (patch)
tree83155d0289677a563929119c27ade00f39b613cb /Objects/methodobject.c
parent63edbed6ef6c44d2fb45994aea8344505ca45e55 (diff)
downloadcpython-174958263e0e4854bb560dd8609a76e797cc66f7.tar.gz
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724.
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r--Objects/methodobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index f1a9f4b702..a7334cfe88 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -208,8 +208,7 @@ meth_richcompare(PyObject *self, PyObject *other, int op)
!PyCFunction_Check(self) ||
!PyCFunction_Check(other))
{
- Py_INCREF(Py_NotImplemented);
- return Py_NotImplemented;
+ Py_RETURN_NOTIMPLEMENTED;
}
a = (PyCFunctionObject *)self;
b = (PyCFunctionObject *)other;