mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
#2803: fix wrong invocation of heappush in seldom-reached code.
Thanks to Matt Harden.
This commit is contained in:
parent
d063240d91
commit
ea823a866c
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class scheduler:
|
|||
action(*argument)
|
||||
delayfunc(0) # Let other threads run
|
||||
else:
|
||||
heapq.heappush(event)
|
||||
heapq.heappush(q, event)
|
||||
|
||||
@property
|
||||
def queue(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue