[Python-checkins] cpython (2.7): Fix unintended switch from a constant to a global in 56a3c0bc4634
raymond.hettinger
python-checkins at python.org
Mon Oct 28 09:39:13 CET 2013
http://hg.python.org/cpython/rev/cd95f1276360
changeset: 86701:cd95f1276360
branch: 2.7
parent: 86696:1712a22aa1a9
user: Raymond Hettinger <python at rcn.com>
date: Mon Oct 28 02:39:04 2013 -0600
summary:
Fix unintended switch from a constant to a global in 56a3c0bc4634
files:
Lib/heapq.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/heapq.py b/Lib/heapq.py
--- a/Lib/heapq.py
+++ b/Lib/heapq.py
@@ -380,7 +380,7 @@
while _len(h) > 1:
try:
- while True:
+ while 1:
v, itnum, next = s = h[0]
yield v
s[0] = next() # raises StopIteration when exhausted
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list