From 9a2325fac884e3e34af0476e05d6800cfba22ad8 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 28 Oct 2013 02:39:04 -0600 Subject: [PATCH] Fix unintended switch from a constant to a global in 56a3c0bc4634 --- Lib/heapq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/heapq.py b/Lib/heapq.py index 19037ab1290..4b2c0c44411 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