##// END OF EJS Templates
py3: keep stdout as defined by pycompat in procutil...
Denis Laxalde -
r43435:227ba1af default
parent child Browse files
Show More
@@ -53,7 +53,9 b' if isatty(stdout):'
53 if pycompat.iswindows:
53 if pycompat.iswindows:
54 # Windows doesn't support line buffering
54 # Windows doesn't support line buffering
55 stdout = os.fdopen(stdout.fileno(), r'wb', 0)
55 stdout = os.fdopen(stdout.fileno(), r'wb', 0)
56 else:
56 elif not pycompat.ispy3:
57 # on Python 3, stdout (sys.stdout.buffer) is already line buffered and
58 # buffering=1 is not handled in binary mode
57 stdout = os.fdopen(stdout.fileno(), r'wb', 1)
59 stdout = os.fdopen(stdout.fileno(), r'wb', 1)
58
60
59 if pycompat.iswindows:
61 if pycompat.iswindows:
General Comments 0
You need to be logged in to leave comments. Login now