mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 09:31:31 +00:00
Reduce line length to 120
This commit is contained in:
parent
7a67b68cba
commit
a743b01bcf
@ -1,5 +1,5 @@
|
|||||||
[TYPECHECK]
|
[TYPECHECK]
|
||||||
|
|
||||||
ignored-modules = zmq
|
ignored-modules = zmq
|
||||||
max-line-length = 150
|
max-line-length = 120
|
||||||
disable = missing-docstring, too-few-public-methods, invalid-name
|
disable = missing-docstring, too-few-public-methods, invalid-name
|
||||||
|
@ -29,9 +29,16 @@ class TerminalEventHandler(EventHandlerBase):
|
|||||||
self.working_directory = TFWENV.TERMINADO_DIR
|
self.working_directory = TFWENV.TERMINADO_DIR
|
||||||
self._historymonitor = monitor
|
self._historymonitor = monitor
|
||||||
bash_as_user_cmd = ['sudo', '-u', TAOENV.USER, 'bash']
|
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,
|
self.terminado_server = TerminadoMiniServer(
|
||||||
'read': self.read}
|
'/terminal', TFWENV.TERMINADO_PORT, TFWENV.TERMINADO_WD, bash_as_user_cmd
|
||||||
|
)
|
||||||
|
|
||||||
|
self.commands = {
|
||||||
|
'write': self.write,
|
||||||
|
'read': self.read
|
||||||
|
}
|
||||||
|
|
||||||
if self._historymonitor:
|
if self._historymonitor:
|
||||||
self._historymonitor.watch()
|
self._historymonitor.watch()
|
||||||
self.terminado_server.listen()
|
self.terminado_server.listen()
|
||||||
|
Loading…
Reference in New Issue
Block a user