Minor fixup. maxlen is already known.

This commit is contained in:
Raymond Hettinger 2015-10-11 22:52:54 -07:00
parent d96db09b57
commit 965362e92d
1 changed files with 2 additions and 2 deletions

View File

@ -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;