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()