summaryrefslogtreecommitdiff
path: root/Modules/xxlimited.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 /Modules/xxlimited.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 'Modules/xxlimited.c')
-rw-r--r--Modules/xxlimited.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c
index ec924f2117..661b6e294a 100644
--- a/Modules/xxlimited.c
+++ b/Modules/xxlimited.c
@@ -187,8 +187,7 @@ static PyType_Spec Str_Type_spec = {
static PyObject *
null_richcompare(PyObject *self, PyObject *other, int op)
{
- Py_INCREF(Py_NotImplemented);
- return Py_NotImplemented;
+ Py_RETURN_NOTIMPLEMENTED;
}
static PyType_Slot Null_Type_slots[] = {