From: Raymond Hettinger Date: Mon, 12 Oct 2015 05:52:54 +0000 (-0700) Subject: Minor fixup. maxlen is already known. X-Git-Tag: v3.6.0a1~1246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=965362e92d50d8c4e7e0bfac46f7ac14ee26bbae;p=python Minor fixup. maxlen is already known. --- 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;