From cbcb1e8f84557b06af9fbead2411c6eaa87a39e0 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 28 Oct 2013 02:39:04 -0600 Subject: 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 19037ab..4b2c0c4 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 -- cgit v0.12