]> granicus.if.org Git - python/commitdiff
#2803: fix wrong invocation of heappush in seldom-reached code.
authorGeorg Brandl <georg@python.org>
Sun, 11 May 2008 15:20:16 +0000 (15:20 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 11 May 2008 15:20:16 +0000 (15:20 +0000)
Thanks to Matt Harden.

Lib/sched.py

index 1c7bfeab37364ee364bf73f092b0a865b5189151..aecdb2a47554aa86599cb353a0aec610a902a2dc 100644 (file)
@@ -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):