diff options
-rw-r--r-- | Lib/heapq.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |