From a0b3a00bc5f55cfbdc3d9b7925ee8a28fa2bdc55 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 2 Aug 2002 19:45:37 +0000 Subject: heappop(): Use "while True" instead of "while 1". --- Lib/heapq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/heapq.py b/Lib/heapq.py index 6264700..524f65c 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py @@ -142,7 +142,7 @@ def heappop(heap): returnitem = heap[0] item = heap.pop() pos = 0 - while 1: + while True: child2pos = (pos + 1) * 2 child1pos = child2pos - 1 if child2pos < endpos: -- cgit v0.12