Fix issue typo in schedule.removeEvent.

This commit is contained in:
Valentin Lorentz 2012-08-04 15:57:47 +02:00
parent 458508a287
commit 8211aab92e

View File

@ -101,7 +101,7 @@ class Schedule(drivers.IrcDriver):
# but that would only save a constant factor (we're already linear for
# the listcomp) so I'm not worried about it right now.
with self.lock:
self.schedule = [x for x in self.schedule if f != name]
self.schedule = [x for x in self.schedule if x[1] != name]
heapq.heapify(self.schedule)
return f