summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-11 15:21:42 +0000
committerGeorg Brandl <georg@python.org>2008-05-11 15:21:42 +0000
commit094679f619e1cb015bb1aba9222fd4345ed289e0 (patch)
tree25f89d9b960aa9d5dc05b46ce327f77cd5fa72c9
parent0b47afdc9490bae103a6e71d10dbc339e11ab87e (diff)
downloadcpython-094679f619e1cb015bb1aba9222fd4345ed289e0.tar.gz
#2803: fix heappush invocation (backport).
-rw-r--r--Lib/sched.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sched.py b/Lib/sched.py
index 7c3235e9f6..1643236bc7 100644
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -114,4 +114,4 @@ class scheduler:
void = action(*argument)
delayfunc(0) # Let other threads run
else:
- heapq.heappush(event)
+ heapq.heappush(q, event)