summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/scheduler.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-16 21:15:31 -0400
committerLance Stout <lancestout@gmail.com>2010-10-16 21:15:31 -0400
commit505a63da3a4cdcd1a38fc18f41a6988d792dda8b (patch)
treee4b234188d436ff784d8c132ce10e422b64d0b75 /sleekxmpp/xmlstream/scheduler.py
parent93fbcad2777cb853ec9f4e7132c078e503bba2f4 (diff)
downloadslixmpp-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.py6
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))