mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix nit (sentinel on lhs of comparison).
This commit is contained in:
parent
08d01eedef
commit
1b66996281
1 changed files with 1 additions and 3 deletions
|
@ -177,9 +177,7 @@ calliter_iternext(calliterobject *it)
|
|||
Py_DECREF(args);
|
||||
if (result != NULL) {
|
||||
int ok;
|
||||
ok = PyObject_RichCompareBool(result,
|
||||
it->it_sentinel,
|
||||
Py_EQ);
|
||||
ok = PyObject_RichCompareBool(it->it_sentinel, result, Py_EQ);
|
||||
if (ok == 0)
|
||||
return result; /* Common case, fast path */
|
||||
Py_DECREF(result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue