]> granicus.if.org Git - python/commitdiff
heappop(): Use "while True" instead of "while 1".
authorTim Peters <tim.peters@gmail.com>
Fri, 2 Aug 2002 19:45:37 +0000 (19:45 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 2 Aug 2002 19:45:37 +0000 (19:45 +0000)
Lib/heapq.py

index 6264700ee4f96f8837b60aa9e8ccc77e0b2f3da0..524f65ce09156c9c151acbe6c9f338d867f3ee57 100644 (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: