changeset 44919:065704cbdbdb stable 5.4.1

py3: update comment to account for Python 2 and Python 3 differences
author Manuel Jacob <me@manueljacob.de>
date Fri, 05 Jun 2020 06:40:15 +0200
parents 7be784f301fa
children e4e7b614a848
files mercurial/utils/procutil.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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