Patchwork [3,of,4,stable] py3: update comment to account for Python 2 and Python 3 differences

login
register
mail settings
Submitter Manuel Jacob
Date June 5, 2020, 9:44 a.m.
Message ID <618173e6b7115a93588b.1591350290@tmp>
Download mbox | patch
Permalink /patch/46469/
State Accepted
Headers show

Comments

Manuel Jacob - June 5, 2020, 9:44 a.m.
# HG changeset patch
# User Manuel Jacob <me@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

Patch

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