[Python-checkins] cpython: Minor fixup. maxlen is already known.
raymond.hettinger
python-checkins at python.org
Mon Oct 12 01:52:59 EDT 2015
https://hg.python.org/cpython/rev/58e2736a57e6
changeset: 98706:58e2736a57e6
user: Raymond Hettinger <python at rcn.com>
date: Sun Oct 11 22:52:54 2015 -0700
summary:
Minor fixup. maxlen is already known.
files:
Modules/_collectionsmodule.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -399,7 +399,7 @@
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 @@
if (it == NULL)
return NULL;
- if (deque->maxlen == 0)
+ if (maxlen == 0)
return consume_iterator(it);
iternext = *Py_TYPE(it)->tp_iternext;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list