Flush written text to both stdout and a file, if open.
(self)
| 91 | self.flush() |
| 92 | |
| 93 | def flush(self) -> None: |
| 94 | """Flush written text to both stdout and a file, if open.""" |
| 95 | if self.file is not None: |
| 96 | self.file.flush() |
| 97 | |
| 98 | self.stdout.flush() |
| 99 | |
| 100 | def close(self) -> None: |
| 101 | """Flush, close possible files, and remove stdout/stderr mirroring.""" |
no outgoing calls
no test coverage detected