mercurial/util.py
changeset 9552 f0417b6ff98a
parent 9549 8b8920209317
parent 9530 ba8a86d86fd6
child 9569 ceb0f59e1327
equal deleted inserted replaced
9551:3e698434b990 9552:f0417b6ff98a
  1219                     continue
  1219                     continue
  1220                 arri = fcntl.ioctl(fd, termios.TIOCGWINSZ, '\0' * 8)
  1220                 arri = fcntl.ioctl(fd, termios.TIOCGWINSZ, '\0' * 8)
  1221                 return array.array('h', arri)[1]
  1221                 return array.array('h', arri)[1]
  1222             except ValueError:
  1222             except ValueError:
  1223                 pass
  1223                 pass
       
  1224             except IOError, e: 
       
  1225                 if e[0] == errno.EINVAL: 
       
  1226                     pass 
       
  1227                 else: 
       
  1228                     raise 
  1224     except ImportError:
  1229     except ImportError:
  1225         pass
  1230         pass
  1226     return 80
  1231     return 80
  1227 
  1232 
  1228 def wrap(line, hangindent, width=None):
  1233 def wrap(line, hangindent, width=None):