[Python-checkins] cpython (merge 3.2 -> default): Merge example fix from 3.2.

georg.brandl python-checkins at python.org
Sun Sep 18 07:39:12 CEST 2011


http://hg.python.org/cpython/rev/fcd29041c991
changeset:   72397:fcd29041c991
parent:      72394:23e4b73937f7
parent:      72396:5deecc04b7a2
user:        Georg Brandl <georg at python.org>
date:        Sun Sep 18 07:40:20 2011 +0200
summary:
  Merge example fix from 3.2.

files:
  Doc/library/heapq.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst
--- a/Doc/library/heapq.rst
+++ b/Doc/library/heapq.rst
@@ -191,8 +191,8 @@
     def get_top_priority():
         while True:
             priority, count, task = heappop(pq)
-            del task_finder[task]
             if count is not INVALID:
+                del task_finder[task]
                 return task
 
     def delete_task(task):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list