]> granicus.if.org Git - python/commitdiff
Fix unintended switch from a constant to a global in 56a3c0bc4634
authorRaymond Hettinger <python@rcn.com>
Mon, 28 Oct 2013 08:39:04 +0000 (02:39 -0600)
committerRaymond Hettinger <python@rcn.com>
Mon, 28 Oct 2013 08:39:04 +0000 (02:39 -0600)
Lib/heapq.py

index 19037ab1290efa3f415b88fa496802356eb69104..4b2c0c444110fae356e51c89db7dbece4bdfaf90 100644 (file)
@@ -380,7 +380,7 @@ def merge(*iterables):
 
     while _len(h) > 1:
         try:
-            while True:
+            while 1:
                 v, itnum, next = s = h[0]
                 yield v
                 s[0] = next()               # raises StopIteration when exhausted