mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-11-06 03:37:13 +08:00
Merge "Flush stderr on Windows"
This commit is contained in:
4
repo
4
repo
@@ -144,6 +144,10 @@ def _print(*objects, **kwargs):
|
|||||||
out = kwargs.get('file', sys.stdout)
|
out = kwargs.get('file', sys.stdout)
|
||||||
out.write(sep.join(objects) + end)
|
out.write(sep.join(objects) + end)
|
||||||
|
|
||||||
|
# On Windows stderr is buffered, so flush to maintain the order of error messages.
|
||||||
|
if out == sys.stderr and platform.system() == "Windows":
|
||||||
|
out.flush()
|
||||||
|
|
||||||
|
|
||||||
# Python version check
|
# Python version check
|
||||||
ver = sys.version_info
|
ver = sys.version_info
|
||||||
|
|||||||
Reference in New Issue
Block a user