Submitter | Manuel Jacob |
---|---|
Date | July 6, 2020, 12:03 p.m. |
Message ID | <271329a28ae25a030112.1594036994@tmp> |
Download | mbox | patch |
Permalink | /patch/46631/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py +++ b/mercurial/utils/procutil.py @@ -37,10 +37,6 @@ osutil = policy.importmod('osutil') -stderr = pycompat.stderr -stdin = pycompat.stdin -stdout = pycompat.stdout - def isatty(fp): try: @@ -79,6 +75,10 @@ return LineBufferedWrapper(stream) +stderr = pycompat.stderr +stdin = pycompat.stdin +stdout = pycompat.stdout + # 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)