diff --git a/src/shelllogger/__init__.py b/src/shelllogger/__init__.py index ddad82c..b130c1b 100644 --- a/src/shelllogger/__init__.py +++ b/src/shelllogger/__init__.py @@ -1 +1,3 @@ from .ShellLogger import ShellLogger, ShellLoggerDecoder, ShellLoggerEncoder + +__all__ = ["ShellLogger", "ShellLoggerDecoder", "ShellLoggerEncoder"] diff --git a/src/shelllogger/classes.py b/src/shelllogger/classes.py index 9feb870..1c38035 100644 --- a/src/shelllogger/classes.py +++ b/src/shelllogger/classes.py @@ -187,12 +187,12 @@ def run(self, command: str, **kwargs) -> SimpleNamespace: # Set the `RET_CODE` environment variable, such that we can # access it later. - os.write(self.aux_stdin_wfd, f"RET_CODE=$?\n".encode()) + os.write(self.aux_stdin_wfd, "RET_CODE=$?\n".encode()) # Because these writes are non-blocking, tell the shell that the # writes are complete. - os.write(self.aux_stdin_wfd, f"printf '\\4'\n".encode()) - os.write(self.aux_stdin_wfd, f"printf '\\4' 1>&2\n".encode()) + os.write(self.aux_stdin_wfd, "printf '\\4'\n".encode()) + os.write(self.aux_stdin_wfd, "printf '\\4' 1>&2\n".encode()) # Tee the output to multiple sinks (files, strings, # `stdout`/`stderr`).