commit | 607cc361bb489bb5d860ef162bcf91a7c7795d42 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Sep 18 07:40:05 2011 +0200 |
committer | Georg Brandl <georg@python.org> | Sun Sep 18 07:40:05 2011 +0200 |
tree | af8b6616c1553d32ea24a893aa3716fd9b477844 | |
parent | 21c69b1043d510d29928c15cb9e3e2c1c23f1d0a [diff] |
Fix bug in heapq priority queue example.
diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst index 86be3bd..c995802 100644 --- a/Doc/library/heapq.rst +++ b/Doc/library/heapq.rst
@@ -205,8 +205,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):