##// END OF EJS Templates
util.termwidth: check stderr first as it's least likely to be redirected
Augie Fackler -
r10789:1b45468d stable
parent child Browse files
Show More
@@ -1253,7 +1253,7 b' def termwidth():'
1253 1253 pass
1254 1254 try:
1255 1255 import termios, array, fcntl
1256 for dev in (sys.stdout, sys.stdin):
1256 for dev in (sys.stderr, sys.stdout, sys.stdin):
1257 1257 try:
1258 1258 try:
1259 1259 fd = dev.fileno()
General Comments 0
You need to be logged in to leave comments. Login now