mirror of https://github.com/python/cpython
Merge example fix from 3.2.
This commit is contained in:
commit
ddd2d70cc6
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue