diff options
author | Raymond Hettinger <python@rcn.com> | 2015-11-02 07:27:40 -0500 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-11-02 07:27:40 -0500 |
commit | 7014c4ba83c9ea91e729a3b6034d5a6aeeb4b675 (patch) | |
tree | 9df543609d9a24d3201a10e51f60feb16687afaa | |
parent | c38bea2ca0cb9280027ec446627ed2c8276007c5 (diff) | |
download | cpython-7014c4ba83c9ea91e729a3b6034d5a6aeeb4b675.tar.gz |
Minor cleanup.
-rw-r--r-- | Modules/_collectionsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index c9e4568ce0..1ca6c72d37 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, |