summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2011-08-11 01:28:54 (GMT)
committerBrian Curtin <brian@python.org>2011-08-11 01:28:54 (GMT)
commitdfc80e3d97680ee26e509daba4a08502fefe22ee (patch)
treef28c4978ce126c4308a45aa594f0f2c86dfc1965 /Objects/listobject.c
parent7d2f9e13424fe74814e14cf92d7bbd779917a5c5 (diff)
downloadcpython-dfc80e3d97680ee26e509daba4a08502fefe22ee.zip
cpython-dfc80e3d97680ee26e509daba4a08502fefe22ee.tar.gz
cpython-dfc80e3d97680ee26e509daba4a08502fefe22ee.tar.bz2
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index dab91db..2cd8642 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -2225,10 +2225,8 @@ list_richcompare(PyObject *v, PyObject *w, int op)
PyListObject *vl, *wl;
Py_ssize_t i;
- if (!PyList_Check(v) || !PyList_Check(w)) {
- Py_INCREF(Py_NotImplemented);
- return Py_NotImplemented;
- }
+ if (!PyList_Check(v) || !PyList_Check(w))
+ Py_RETURN_NOTIMPLEMENTED;
vl = (PyListObject *)v;
wl = (PyListObject *)w;