diff options
author | Raymond Hettinger <python@rcn.com> | 2015-10-12 05:52:54 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-10-12 05:52:54 (GMT) |
commit | 965362e92d50d8c4e7e0bfac46f7ac14ee26bbae (patch) | |
tree | 633e7af4ead8dcc2ae3d9397ff4f53c666ad12dc /Modules/_collectionsmodule.c | |
parent | d96db09b570bff9e4397530082e33dd3e965a701 (diff) | |
download | cpython-965362e92d50d8c4e7e0bfac46f7ac14ee26bbae.zip cpython-965362e92d50d8c4e7e0bfac46f7ac14ee26bbae.tar.gz cpython-965362e92d50d8c4e7e0bfac46f7ac14ee26bbae.tar.bz2 |
Minor fixup. maxlen is already known.
Diffstat (limited to 'Modules/_collectionsmodule.c')
-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 3c8e025..cef92c0 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; |