Flush and close the file handle.
(self)
| 80 | self._file_handle.write(f"exit code {exit_code}\n") |
| 81 | |
| 82 | def close(self) -> None: |
| 83 | """Flush and close the file handle.""" |
| 84 | with self._lock: |
| 85 | self._file_handle.flush() |
| 86 | self._file_handle.close() |
| 87 | |
| 88 | @property |
| 89 | def file_path(self) -> Path: |