[Python-checkins] python/dist/src/Lib heapq.py,1.3,1.4

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Fri, 02 Aug 2002 12:45:39 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv8393/python/Lib

Modified Files:
	heapq.py 
Log Message:
heappop():  Use "while True" instead of "while 1".


Index: heapq.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/heapq.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** heapq.py	2 Aug 2002 19:16:44 -0000	1.3
--- heapq.py	2 Aug 2002 19:45:37 -0000	1.4
***************
*** 143,147 ****
      item = heap.pop()
      pos = 0
!     while 1:
          child2pos = (pos + 1) * 2
          child1pos = child2pos - 1
--- 143,147 ----
      item = heap.pop()
      pos = 0
!     while True:
          child2pos = (pos + 1) * 2
          child1pos = child2pos - 1