# HG changeset patch
# User Manuel Jacob <m...@manueljacob.de>
# Date 1591332015 -7200
#      Fri Jun 05 06:40:15 2020 +0200
# Branch stable
# Node ID 618173e6b7115a93588b7f1a62f9b9b8460ca84b
# Parent  31ab0d15f82bfef3030b653583f89c0d0449fd9c
# EXP-Topic streams
py3: update comment to account for Python 2 and Python 3 differences

diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py
--- a/mercurial/utils/procutil.py
+++ b/mercurial/utils/procutil.py
@@ -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

_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to