diff options
author | Georg Brandl <georg@python.org> | 2011-09-18 05:40:20 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-09-18 05:40:20 (GMT) |
commit | ddd2d70cc63772f6039ffa7e35a04995eb96cf8b (patch) | |
tree | b5409cd0484d031003f785bc9895647ae8d98df5 /Doc | |
parent | 902e8955784698a3b2f2d83f9a349cc8b9f0416c (diff) | |
parent | 1d678f841363d8636cb02510d31e4e4fb9d8815f (diff) | |
download | cpython-ddd2d70cc63772f6039ffa7e35a04995eb96cf8b.zip cpython-ddd2d70cc63772f6039ffa7e35a04995eb96cf8b.tar.gz cpython-ddd2d70cc63772f6039ffa7e35a04995eb96cf8b.tar.bz2 |
Merge example fix from 3.2.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/heapq.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ entry as invalid and optionally add a new entry with the revised priority:: 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): |