mercurial/util.py
changeset 10790 ef3668450cd0
parent 10756 cb681cc59a8d
parent 10789 1b45468d3deb
child 10898 5589110e9170
equal deleted inserted replaced
10787:5974123d0339 10790:ef3668450cd0
  1258             return int(os.environ['COLUMNS'])
  1258             return int(os.environ['COLUMNS'])
  1259         except ValueError:
  1259         except ValueError:
  1260             pass
  1260             pass
  1261     try:
  1261     try:
  1262         import termios, array, fcntl
  1262         import termios, array, fcntl
  1263         for dev in (sys.stdout, sys.stdin):
  1263         for dev in (sys.stderr, sys.stdout, sys.stdin):
  1264             try:
  1264             try:
  1265                 try:
  1265                 try:
  1266                     fd = dev.fileno()
  1266                     fd = dev.fileno()
  1267                 except AttributeError:
  1267                 except AttributeError:
  1268                     continue
  1268                     continue