Cleanup, restore PEP8.

This commit is contained in:
Lance Stout
2010-10-16 21:15:31 -04:00
parent 93fbcad277
commit 505a63da3a
5 changed files with 48 additions and 42 deletions

View File

@@ -167,10 +167,12 @@ class Scheduler(object):
key=lambda task: task.next)
except KeyboardInterrupt:
self.run = False
if self.parentstop is not None: self.parentstop.set()
if self.parentstop is not None:
self.parentstop.set()
except SystemExit:
self.run = False
if self.parentstop is not None: self.parentstop.set()
if self.parentstop is not None:
self.parentstop.set()
logging.debug("Qutting Scheduler thread")
if self.parentqueue is not None:
self.parentqueue.put(('quit', None, None))