mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Minor fixup. maxlen is already known.
This commit is contained in:
parent
d96db09b57
commit
965362e92d
1 changed files with 2 additions and 2 deletions
|
@ -399,7 +399,7 @@ deque_extend(dequeobject *deque, PyObject *iterable)
|
|||
if (it == NULL)
|
||||
return NULL;
|
||||
|
||||
if (deque->maxlen == 0)
|
||||
if (maxlen == 0)
|
||||
return consume_iterator(it);
|
||||
|
||||
iternext = *Py_TYPE(it)->tp_iternext;
|
||||
|
@ -463,7 +463,7 @@ deque_extendleft(dequeobject *deque, PyObject *iterable)
|
|||
if (it == NULL)
|
||||
return NULL;
|
||||
|
||||
if (deque->maxlen == 0)
|
||||
if (maxlen == 0)
|
||||
return consume_iterator(it);
|
||||
|
||||
iternext = *Py_TYPE(it)->tp_iternext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue