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

This commit is contained in:
Tim Peters 2002-08-02 19:45:37 +00:00
parent d2cf1ab0e2
commit a0b3a00bc5
1 changed files with 1 additions and 1 deletions

View File

@ -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: