# HG changeset patch # User Manuel Jacob # Date 1591332015 -7200 # Node ID 065704cbdbdbb05dcd6bb814eb9bbdd982211b28 # Parent 7be784f301faa3baa96e3a2f0b3c2c42f7e8e44a py3: update comment to account for Python 2 and Python 3 differences diff -r 7be784f301fa -r 065704cbdbdb mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py Fri Jun 05 07:20:52 2020 +0200 +++ b/mercurial/utils/procutil.py Fri Jun 05 06:40:15 2020 +0200 @@ -49,9 +49,11 @@ 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