This commit is contained in:
enkore 2013-02-23 14:06:55 +01:00
parent 341d2cf34e
commit 26cc3ff27a

View File

@ -130,7 +130,10 @@ class StandaloneIO(IOHandler):
def read(self): def read(self):
while True: while True:
yield self.read_line() yield self.read_line()
try:
time.sleep(self.interval) time.sleep(self.interval)
except KeyboardInterrupt:
return
def read_line(self): def read_line(self):
self.n += 1 self.n += 1
@ -208,7 +211,7 @@ class i3pystatus:
# If the user does this: register(modsde, mdesettings) with mdesettings # If the user does this: register(modsde, mdesettings) with mdesettings
# being a dict Python will put mdesettings into the position argument # being a dict Python will put mdesettings into the position argument
# , and not into *args. Let's fix that. # , and not into *args. Let's fix that.
# If she uses keyword arguments, everything is fine right from the beginning :-) # If she uses keyword arguments, everything is fine :-)
args = (position,) args = (position,)
position = 0 position = 0