Skip to content

Commit a8b3a85

Browse files
committed
flush before entering wurlitzer
1 parent e905543 commit a8b3a85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wurlitzer.py

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def _finish_handle(self):
112112
pass
113113

114114
def __enter__(self):
115+
# flush anything out before starting
116+
libc.fflush(c_stdout_p)
117+
libc.fflush(c_stderr_p)
115118
# setup handle
116119
self._setup_handle()
117120

0 commit comments

Comments
 (0)