diff options
author | Lance Stout <lancestout@gmail.com> | 2010-10-16 21:15:31 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-10-16 21:15:31 -0400 |
commit | 505a63da3a4cdcd1a38fc18f41a6988d792dda8b (patch) | |
tree | e4b234188d436ff784d8c132ce10e422b64d0b75 /sleekxmpp/xmlstream/scheduler.py | |
parent | 93fbcad2777cb853ec9f4e7132c078e503bba2f4 (diff) | |
download | slixmpp-505a63da3a4cdcd1a38fc18f41a6988d792dda8b.tar.gz slixmpp-505a63da3a4cdcd1a38fc18f41a6988d792dda8b.tar.bz2 slixmpp-505a63da3a4cdcd1a38fc18f41a6988d792dda8b.tar.xz slixmpp-505a63da3a4cdcd1a38fc18f41a6988d792dda8b.zip |
Cleanup, restore PEP8.
Diffstat (limited to 'sleekxmpp/xmlstream/scheduler.py')
-rw-r--r-- | sleekxmpp/xmlstream/scheduler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/scheduler.py b/sleekxmpp/xmlstream/scheduler.py index 0af1f508..b932b0a7 100644 --- a/sleekxmpp/xmlstream/scheduler.py +++ b/sleekxmpp/xmlstream/scheduler.py @@ -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)) |