]> granicus.if.org Git - python/commitdiff
#2803: fix heappush invocation (backport).
authorGeorg Brandl <georg@python.org>
Sun, 11 May 2008 15:21:42 +0000 (15:21 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 11 May 2008 15:21:42 +0000 (15:21 +0000)
Lib/sched.py

index 7c3235e9f6784c7ee011a450d43523f8bfac55b2..1643236bc77e6c9cf3d7b7c3a2b8e1ad596c9699 100644 (file)
@@ -114,4 +114,4 @@ class scheduler:
                     void = action(*argument)
                     delayfunc(0)   # Let other threads run
                 else:
-                    heapq.heappush(event)
+                    heapq.heappush(q, event)