py3: update comment to account for Python 2 and Python 3 differences stable 5.4.1
authorManuel Jacob <me@manueljacob.de>
Fri, 05 Jun 2020 06:40:15 +0200
branchstable
changeset 44919 065704cbdbdb
parent 44918 7be784f301fa
child 44920 e4e7b614a848
py3: update comment to account for Python 2 and Python 3 differences
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