commit | cbcb1e8f84557b06af9fbead2411c6eaa87a39e0 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Oct 28 02:39:04 2013 -0600 |
committer | Raymond Hettinger <python@rcn.com> | Mon Oct 28 02:39:04 2013 -0600 |
tree | f09ec49f687e552361321345d5652e6cbe9d9307 | |
parent | 9fa6a8ba63dc409a0a50605c59adfdc58f7b0085 [diff] |
Fix unintended switch from a constant to a global in 56a3c0bc4634
diff --git a/Lib/heapq.py b/Lib/heapq.py index 19037ab..4b2c0c4 100644 --- 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