diff options
Diffstat (limited to 'Doc/library')
-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): |