Skip to content

Commit

Permalink
flush before entering wurlitzer
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Mar 12, 2016
1 parent e905543 commit a8b3a85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wurlitzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def _finish_handle(self):
pass

def __enter__(self):
# flush anything out before starting
libc.fflush(c_stdout_p)
libc.fflush(c_stderr_p)
# setup handle
self._setup_handle()

Expand Down

0 comments on commit a8b3a85

Please sign in to comment.