From: Georg Brandl Date: Sun, 11 May 2008 15:20:16 +0000 (+0000) Subject: #2803: fix wrong invocation of heappush in seldom-reached code. X-Git-Tag: v2.6b1~490 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea823a866c634409ee8e12c73845357d29f5e5bf;p=thirdparty%2FPython%2Fcpython.git #2803: fix wrong invocation of heappush in seldom-reached code. Thanks to Matt Harden. --- diff --git a/Lib/sched.py b/Lib/sched.py index 1c7bfeab3736..aecdb2a47554 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):