Commit a0b3a00b authored by Tim Peters's avatar Tim Peters

heappop(): Use "while True" instead of "while 1".

parent d2cf1ab0
...@@ -142,7 +142,7 @@ def heappop(heap): ...@@ -142,7 +142,7 @@ def heappop(heap):
returnitem = heap[0] returnitem = heap[0]
item = heap.pop() item = heap.pop()
pos = 0 pos = 0
while 1: while True:
child2pos = (pos + 1) * 2 child2pos = (pos + 1) * 2
child1pos = child2pos - 1 child1pos = child2pos - 1
if child2pos < endpos: if child2pos < endpos:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment