Skip to content

Commit

Permalink
print: flush in windows redirect mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Nov 11, 2016
1 parent df6d4f8 commit d1098ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions senf/_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ def _print_windows(objects, sep, end, file, flush):
except (TypeError, ValueError):
file.write(text)

if flush:
file.flush()


def _readline_windows():
"""Raises OSError"""
Expand Down

0 comments on commit d1098ac

Please sign in to comment.