commit | 1d678f841363d8636cb02510d31e4e4fb9d8815f | [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 | ad47e4b23e0e92292f8dfa7a69f1a63f3d93ccff | |
parent | 73dd7c71f69b234fb1f3944efa1f08969b3ae3cc [diff] [blame] |
Fix bug in heapq priority queue example.
diff --git a/Doc/library/heapq.rst b/Doc/library/heapq.rst index c8634ba..2ab632f 100644 --- 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):