Commit c1c7c562 authored by Robin Obůrka's avatar Robin Obůrka

msgloop: Make flake8 happy

parent b8896fef
...@@ -54,7 +54,7 @@ class SNBox(): ...@@ -54,7 +54,7 @@ class SNBox():
self.args = self.sn_ctx.args self.args = self.sn_ctx.args
# Error management of the loop # Error management of the loop
self.loop_continue = True self.loop_continue = True
self.errors_in_row = 0 self.errors_in_row = 0
# User data # User data
# Data generated by setup function are placed into separate variable # Data generated by setup function are placed into separate variable
# Final box shouldn't use "self" - we want to isolate its values # Final box shouldn't use "self" - we want to isolate its values
...@@ -189,7 +189,7 @@ class SNBox(): ...@@ -189,7 +189,7 @@ class SNBox():
self.logger.info("Signal %s received", signum) self.logger.info("Signal %s received", signum)
self.loop_continue = False self.loop_continue = False
for sig in [ signal.SIGTERM, signal.SIGQUIT, signal.SIGABRT ]: for sig in [signal.SIGTERM, signal.SIGQUIT, signal.SIGABRT]:
signal.signal(sig, signal_handler) signal.signal(sig, signal_handler)
def before_loop(self): def before_loop(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment