summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-11 15:20:16 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-11 15:20:16 (GMT)
commitea823a866c634409ee8e12c73845357d29f5e5bf (patch)
tree9a33c414335248c8ba696bc2fe629cf2cf5d8a5f /Lib
parentd063240d9141c1207ae7a88f3dc9f7576d49a056 (diff)
downloadcpython-ea823a866c634409ee8e12c73845357d29f5e5bf.zip
cpython-ea823a866c634409ee8e12c73845357d29f5e5bf.tar.gz
cpython-ea823a866c634409ee8e12c73845357d29f5e5bf.tar.bz2
#2803: fix wrong invocation of heappush in seldom-reached code.
Thanks to Matt Harden.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sched.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sched.py b/Lib/sched.py
index 1c7bfea..aecdb2a 100644
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -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):