summaryrefslogtreecommitdiffstats
path: root/Modules/_collectionsmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-11-02 12:27:40 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-11-02 12:27:40 (GMT)
commitdf8f5b56c9dc5e950f39ed0221212256a39c1835 (patch)
tree4cae2b80dc411fd765c09f78ee8bb3fe252aba50 /Modules/_collectionsmodule.c
parenta1fc949b5ab8911a803eee691e6eea55cec43eeb (diff)
downloadcpython-df8f5b56c9dc5e950f39ed0221212256a39c1835.zip
cpython-df8f5b56c9dc5e950f39ed0221212256a39c1835.tar.gz
cpython-df8f5b56c9dc5e950f39ed0221212256a39c1835.tar.bz2
Minor cleanup.
Diffstat (limited to 'Modules/_collectionsmodule.c')
-rw-r--r--Modules/_collectionsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index c9e4568..1ca6c72 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -1060,7 +1060,7 @@ deque_index(dequeobject *deque, PyObject *args)
cmp = PyObject_RichCompareBool(item, v, Py_EQ);
if (cmp > 0)
return PyLong_FromSsize_t(stop - (n + 1));
- else if (cmp < 0)
+ if (cmp < 0)
return NULL;
if (start_state != deque->state) {
PyErr_SetString(PyExc_RuntimeError,