diff options
| author | Brian Curtin <brian@python.org> | 2011-08-10 20:28:54 -0500 |
|---|---|---|
| committer | Brian Curtin <brian@python.org> | 2011-08-10 20:28:54 -0500 |
| commit | 174958263e0e4854bb560dd8609a76e797cc66f7 (patch) | |
| tree | 83155d0289677a563929119c27ade00f39b613cb /Objects/codeobject.c | |
| parent | 63edbed6ef6c44d2fb45994aea8344505ca45e55 (diff) | |
| download | cpython-174958263e0e4854bb560dd8609a76e797cc66f7.tar.gz | |
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724.
Diffstat (limited to 'Objects/codeobject.c')
| -rw-r--r-- | Objects/codeobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index db5c17ecb8..3f77718f2c 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -402,8 +402,7 @@ code_richcompare(PyObject *self, PyObject *other, int op) if ((op != Py_EQ && op != Py_NE) || !PyCode_Check(self) || !PyCode_Check(other)) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; + Py_RETURN_NOTIMPLEMENTED; } co = (PyCodeObject *)self; |
