From: Raymond Hettinger Date: Mon, 28 Oct 2013 08:39:04 +0000 (-0600) Subject: Fix unintended switch from a constant to a global in 56a3c0bc4634 X-Git-Tag: v2.7.8~327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a2325fac884e3e34af0476e05d6800cfba22ad8;p=python Fix unintended switch from a constant to a global in 56a3c0bc4634 --- diff --git a/Lib/heapq.py b/Lib/heapq.py index 19037ab129..4b2c0c4441 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py @@ -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