commit | dfc80e3d97680ee26e509daba4a08502fefe22ee | [log] [tgz] |
---|---|---|
author | Brian Curtin <brian@python.org> | Wed Aug 10 20:28:54 2011 -0500 |
committer | Brian Curtin <brian@python.org> | Wed Aug 10 20:28:54 2011 -0500 |
tree | f28c4978ce126c4308a45aa594f0f2c86dfc1965 | |
parent | 7d2f9e13424fe74814e14cf92d7bbd779917a5c5 [diff] [blame] |
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED. The macro was introduced in #12724.
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index f1a9f4b..a7334cf 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c
@@ -208,8 +208,7 @@ !PyCFunction_Check(self) || !PyCFunction_Check(other)) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; + Py_RETURN_NOTIMPLEMENTED; } a = (PyCFunctionObject *)self; b = (PyCFunctionObject *)other;