Skip to content

Commit

Permalink
Get flake8 passing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgate committed Sep 15, 2021
1 parent 8b0a4af commit a3fd6ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/shelllogger/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .ShellLogger import ShellLogger, ShellLoggerDecoder, ShellLoggerEncoder

__all__ = ["ShellLogger", "ShellLoggerDecoder", "ShellLoggerEncoder"]
6 changes: 3 additions & 3 deletions src/shelllogger/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down

0 comments on commit a3fd6ba

Please sign in to comment.