general: remove superfluous callbacks variable (#3075)

This commit is contained in:
codefiles 2025-01-07 15:36:12 -05:00 committed by GitHub
parent 984fa6af46
commit fa515dfdc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -112,8 +112,6 @@ class SysCommandWorker:
working_directory: str | None = './',
remove_vt100_escape_codes_from_lines: bool = True
):
callbacks = callbacks or {}
if isinstance(cmd, str):
cmd = shlex.split(cmd)
@ -122,7 +120,7 @@ class SysCommandWorker:
cmd[0] = locate_binary(cmd[0])
self.cmd = cmd
self.callbacks = callbacks
self.callbacks = callbacks or {}
self.peek_output = peek_output
# define the standard locale for command outputs. For now the C ascii one. Can be overridden
self.environment_vars = {'LC_ALL': 'C'}