--- 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