mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724.
This commit is contained in:
parent
7d2f9e1342
commit
dfc80e3d97
24 changed files with 87 additions and 162 deletions
|
@ -546,10 +546,8 @@ tuplerichcompare(PyObject *v, PyObject *w, int op)
|
|||
Py_ssize_t i;
|
||||
Py_ssize_t vlen, wlen;
|
||||
|
||||
if (!PyTuple_Check(v) || !PyTuple_Check(w)) {
|
||||
Py_INCREF(Py_NotImplemented);
|
||||
return Py_NotImplemented;
|
||||
}
|
||||
if (!PyTuple_Check(v) || !PyTuple_Check(w))
|
||||
Py_RETURN_NOTIMPLEMENTED;
|
||||
|
||||
vt = (PyTupleObject *)v;
|
||||
wt = (PyTupleObject *)w;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue