.
This commit is contained in:
parent
341d2cf34e
commit
26cc3ff27a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user