summaryrefslogtreecommitdiffstats
path: root/Objects/iterobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-08-07 05:54:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-08-07 05:54:08 (GMT)
commit1b669962815db3e0acc9a9f1f2a923be718350e5 (patch)
tree682c18370e7d796c6e374075e2d23d9568627554 /Objects/iterobject.c
parent08d01eedeff8db39bcc081aebed0bfd1ae54e9e0 (diff)
downloadcpython-1b669962815db3e0acc9a9f1f2a923be718350e5.zip
cpython-1b669962815db3e0acc9a9f1f2a923be718350e5.tar.gz
cpython-1b669962815db3e0acc9a9f1f2a923be718350e5.tar.bz2
Fix nit (sentinel on lhs of comparison).
Diffstat (limited to 'Objects/iterobject.c')
-rw-r--r--Objects/iterobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/iterobject.c b/Objects/iterobject.c
index b534b4a..91a93f5 100644
--- a/Objects/iterobject.c
+++ b/Objects/iterobject.c
@@ -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);