##// END OF EJS Templates
procutil: explain better why line buffering is not possible...
Manuel Jacob -
r45639:8628cd11 default
parent child Browse files
Show More
@@ -99,9 +99,10 b' if pycompat.iswindows:'
99 99 # buffering.
100 100 if isatty(stdout):
101 101 if pycompat.ispy3 or pycompat.iswindows:
102 # On Python 3, buffered binary streams can't be set line-buffered.
103 # On Python 2, Windows doesn't support line buffering.
104 # Therefore we have a wrapper that implements line buffering.
102 # Python 3 implements its own I/O streams.
103 # The standard library doesn't offer line-buffered binary streams.
104 # Python 2 uses the I/O streams provided by the C library.
105 # The Windows C runtime library doesn't support line buffering.
105 106 stdout = make_line_buffered(stdout)
106 107 else:
107 108 stdout = os.fdopen(stdout.fileno(), 'wb', 1)
General Comments 0
You need to be logged in to leave comments. Login now