Commit 6a3f198d authored by Jason Madden's avatar Jason Madden

We should no longer need the timer hack.

parent f2f08825
......@@ -545,10 +545,3 @@ class loop(AbstractLoop):
io_watcher._no_more_watchers = lambda: delitem(io_watchers, fd)
return io_watcher.multiplex(events)
def timer(self, after, repeat=0.0, ref=True, priority=None):
if after <= 0 and repeat <= 0:
# Make sure we can spin the loop. See timer.
# XXX: Note that this doesn't have a `again` method.
return self._watchers.OneShotCheck(self, ref, priority)
return super(loop, self).timer(after, repeat, ref, priority)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment