changeset 10789:1b45468d3deb stable

util.termwidth: check stderr first as it's least likely to be redirected
author Augie Fackler <durin42@gmail.com>
date Mon, 15 Mar 2010 14:53:34 -0500
parents ca6ba6cac6cd
children ef3668450cd0 48c8eb9de0c8 23ff2a92cc9d
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Mon Mar 29 16:44:24 2010 -0500
+++ b/mercurial/util.py	Mon Mar 15 14:53:34 2010 -0500
@@ -1253,7 +1253,7 @@
             pass
     try:
         import termios, array, fcntl
-        for dev in (sys.stdout, sys.stdin):
+        for dev in (sys.stderr, sys.stdout, sys.stdin):
             try:
                 try:
                     fd = dev.fileno()