mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Minor cleanup.
This commit is contained in:
parent
a1fc949b5a
commit
df8f5b56c9
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue