diff -r e8773133bf79 -r 83b43987e61e scheduler.py --- a/scheduler.py Sun Jan 28 11:01:45 2018 +0000 +++ b/scheduler.py Sun Jan 28 11:04:52 2018 +0000 @@ -6,7 +6,7 @@ import time import borgend -import sleep +import dreamtime from threading import Condition, Lock, Thread logger=borgend.logger.getChild(__name__) @@ -50,7 +50,7 @@ self.prev=None class ScheduledEvent(QueuedEvent): - #@accepts(ScheduledEvent, sleep.Time, threading.Cond, str) + #@accepts(ScheduledEvent, dreamtime.Time, threading.Cond, str) def __init__(self, when, cond, name=None): super().__init__(cond, name=name) self.when=when @@ -113,7 +113,7 @@ self.precision = precision self._next_event_time = None super().__init__(target = self._scheduler_thread, name = 'Scheduler') - sleep.add_callback(self, self._wakeup_callback) + dreamtime.add_callback(self, self._wakeup_callback) def _scheduler_thread(self): logger.debug("Scheduler thread started")