Commit 47af4d2d authored by Manuel Jacob's avatar Manuel Jacob

py3: update comment to account for Python 2 and Python 3 differences

--HG--
branch : stable
parent 7be784f301fa
Pipeline #6796 failed with stage
in 24 minutes and 25 seconds
......@@ -49,9 +49,11 @@ def isatty(fp):
return False
# glibc determines buffering on first write to stdout - if we replace a TTY
# destined stdout with a pipe destined stdout (e.g. pager), we want line
# buffering (or unbuffered, on Windows)
# Python 2 uses the C library's standard I/O streams. Glibc determines
# buffering on first write to stdout - if we replace a TTY destined stdout with
# a pipe destined stdout (e.g. pager), we want line buffering (or unbuffered,
# on Windows).
# Python 3 rolls its own standard I/O streams.
if isatty(stdout):
if pycompat.iswindows:
# Windows doesn't support line buffering
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment