general: remove superfluous callbacks variable (#3075)
This commit is contained in:
parent
984fa6af46
commit
fa515dfdc6
|
|
@ -112,8 +112,6 @@ class SysCommandWorker:
|
||||||
working_directory: str | None = './',
|
working_directory: str | None = './',
|
||||||
remove_vt100_escape_codes_from_lines: bool = True
|
remove_vt100_escape_codes_from_lines: bool = True
|
||||||
):
|
):
|
||||||
callbacks = callbacks or {}
|
|
||||||
|
|
||||||
if isinstance(cmd, str):
|
if isinstance(cmd, str):
|
||||||
cmd = shlex.split(cmd)
|
cmd = shlex.split(cmd)
|
||||||
|
|
||||||
|
|
@ -122,7 +120,7 @@ class SysCommandWorker:
|
||||||
cmd[0] = locate_binary(cmd[0])
|
cmd[0] = locate_binary(cmd[0])
|
||||||
|
|
||||||
self.cmd = cmd
|
self.cmd = cmd
|
||||||
self.callbacks = callbacks
|
self.callbacks = callbacks or {}
|
||||||
self.peek_output = peek_output
|
self.peek_output = peek_output
|
||||||
# define the standard locale for command outputs. For now the C ascii one. Can be overridden
|
# define the standard locale for command outputs. For now the C ascii one. Can be overridden
|
||||||
self.environment_vars = {'LC_ALL': 'C'}
|
self.environment_vars = {'LC_ALL': 'C'}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue