From: Tim Peters Date: Fri, 2 Aug 2002 19:45:37 +0000 (+0000) Subject: heappop(): Use "while True" instead of "while 1". X-Git-Tag: v2.3c1~4766 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0b3a00bc5f55cfbdc3d9b7925ee8a28fa2bdc55;p=python heappop(): Use "while True" instead of "while 1". --- diff --git a/Lib/heapq.py b/Lib/heapq.py index 6264700ee4..524f65ce09 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: