From fa515dfdc6468b6cf663913629c273024b079d79 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:36:12 -0500 Subject: [PATCH] general: remove superfluous callbacks variable (#3075) --- archinstall/lib/general.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 4d01f787..eb223bd0 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -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'}