commit | ac37a80ce677025e03951091284feab1eadc0404 | [log] [tgz] |
---|---|---|
author | Gustavo Niemeyer <gustavo@niemeyer.net> | Thu Mar 24 14:16:39 2011 -0300 |
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | Thu Mar 24 14:16:39 2011 -0300 |
tree | 0d9d2c886439affe076804fcbefc20fd98bc56ea | |
parent | 30af0028a6633dc415a6c41bf2f2a67bda9bb68a [diff] [blame] |
Applying Python 3 support patch by Brian Jones.
diff --git a/sandbox/scheduler.py b/sandbox/scheduler.py index c998600..6216fe6 100644 --- a/sandbox/scheduler.py +++ b/sandbox/scheduler.py
@@ -8,7 +8,7 @@ __license__ = "PSF License" import datetime -import thread +import _thread import signal import time @@ -88,7 +88,7 @@ def run(self): self._running = True - thread.start_new_thread(self._loop, ()) + _thread.start_new_thread(self._loop, ()) def stop(self): self._running = False