Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Apr 18, 2024
1 parent 94f88f1 commit 9edc01d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dcicutils/captured_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def captured_output(capture: bool = True, encoding: Optional[str] = None):

original_stdout = _real_stdout
original_stderr = _real_stderr
# FYI: This encoding business with _EncodedStringIO was introduced (circa April 2024)
# when ran into issues unit testing progress_bar which outputs those funny block characters.
captured_output = io.StringIO() if not encoding else _EncodedStringIO(encoding)

def set_original_output() -> None:
Expand Down

0 comments on commit 9edc01d

Please sign in to comment.