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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea823a866c634409ee8e12c73845357d29f5e5bf;p=python #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 1c7bfeab37..aecdb2a475 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):