From a743b01bcfcabc933eaaea97378d916f42568418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 1 Jun 2018 17:19:58 +0200 Subject: [PATCH] Reduce line length to 120 --- .pylintrc | 2 +- lib/tfw/components/terminal_event_handler.py | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.pylintrc b/.pylintrc index 7fb46c0..f36e237 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,5 +1,5 @@ [TYPECHECK] ignored-modules = zmq -max-line-length = 150 +max-line-length = 120 disable = missing-docstring, too-few-public-methods, invalid-name diff --git a/lib/tfw/components/terminal_event_handler.py b/lib/tfw/components/terminal_event_handler.py index 3f7e208..5d1956e 100644 --- a/lib/tfw/components/terminal_event_handler.py +++ b/lib/tfw/components/terminal_event_handler.py @@ -29,9 +29,16 @@ class TerminalEventHandler(EventHandlerBase): self.working_directory = TFWENV.TERMINADO_DIR self._historymonitor = monitor bash_as_user_cmd = ['sudo', '-u', TAOENV.USER, 'bash'] - self.terminado_server = TerminadoMiniServer('/terminal', TFWENV.TERMINADO_PORT, TFWENV.TERMINADO_WD, bash_as_user_cmd) - self.commands = {'write': self.write, - 'read': self.read} + + self.terminado_server = TerminadoMiniServer( + '/terminal', TFWENV.TERMINADO_PORT, TFWENV.TERMINADO_WD, bash_as_user_cmd + ) + + self.commands = { + 'write': self.write, + 'read': self.read + } + if self._historymonitor: self._historymonitor.watch() self.terminado_server.listen()