mirror of
https://github.com/python/cpython.git
synced 2026-05-26 06:14:25 -04:00
heappop(): Use "while True" instead of "while 1".
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user