diff options
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -144,6 +144,10 @@ def _print(*objects, **kwargs): | |||
144 | out = kwargs.get('file', sys.stdout) | 144 | out = kwargs.get('file', sys.stdout) |
145 | out.write(sep.join(objects) + end) | 145 | out.write(sep.join(objects) + end) |
146 | 146 | ||
147 | # On Windows stderr is buffered, so flush to maintain the order of error messages. | ||
148 | if out == sys.stderr and platform.system() == "Windows": | ||
149 | out.flush() | ||
150 | |||
147 | 151 | ||
148 | # Python version check | 152 | # Python version check |
149 | ver = sys.version_info | 153 | ver = sys.version_info |