##// END OF EJS Templates
procutil: move comment closer to relevant code
Manuel Jacob -
r45642:b6afe1c5 default
parent child Browse files
Show More
@@ -91,9 +91,6 b' else:'
91 stdout = sys.stdout
91 stdout = sys.stdout
92 stderr = sys.stderr
92 stderr = sys.stderr
93
93
94 # glibc determines buffering on first write to stdout - if we replace a TTY
95 # destined stdout with a pipe destined stdout (e.g. pager), we want line
96 # buffering.
97 if isatty(stdout):
94 if isatty(stdout):
98 if pycompat.ispy3:
95 if pycompat.ispy3:
99 # Python 3 implements its own I/O streams.
96 # Python 3 implements its own I/O streams.
@@ -106,6 +103,9 b' if isatty(stdout):'
106 # The Windows C runtime library doesn't support line buffering.
103 # The Windows C runtime library doesn't support line buffering.
107 stdout = make_line_buffered(stdout)
104 stdout = make_line_buffered(stdout)
108 else:
105 else:
106 # glibc determines buffering on first write to stdout - if we
107 # replace a TTY destined stdout with a pipe destined stdout (e.g.
108 # pager), we want line buffering.
109 stdout = os.fdopen(stdout.fileno(), 'wb', 1)
109 stdout = os.fdopen(stdout.fileno(), 'wb', 1)
110
110
111
111
General Comments 0
You need to be logged in to leave comments. Login now