mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Merge example fix from 3.2.
This commit is contained in:
commit
ddd2d70cc6
1 changed files with 1 additions and 1 deletions
|
|
@ -191,8 +191,8 @@ entry as invalid and optionally add a new entry with the revised priority::
|
||||||
def get_top_priority():
|
def get_top_priority():
|
||||||
while True:
|
while True:
|
||||||
priority, count, task = heappop(pq)
|
priority, count, task = heappop(pq)
|
||||||
del task_finder[task]
|
|
||||||
if count is not INVALID:
|
if count is not INVALID:
|
||||||
|
del task_finder[task]
|
||||||
return task
|
return task
|
||||||
|
|
||||||
def delete_task(task):
|
def delete_task(task):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue