diff options
author | Raymond Hettinger <python@rcn.com> | 2015-10-11 22:52:54 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-10-11 22:52:54 -0700 |
commit | 965362e92d50d8c4e7e0bfac46f7ac14ee26bbae (patch) | |
tree | 633e7af4ead8dcc2ae3d9397ff4f53c666ad12dc | |
parent | d96db09b570bff9e4397530082e33dd3e965a701 (diff) | |
download | cpython-git-965362e92d50d8c4e7e0bfac46f7ac14ee26bbae.tar.gz |
Minor fixup. maxlen is already known.
-rw-r--r-- | Modules/_collectionsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 3c8e0259c4..cef92c0b81 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -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; |