Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 9524:effa05849027
Fix for issue1848
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 03 Oct 2009 15:57:48 -0500 |
parents | b2d65ee49a72 |
children | ba8a86d86fd6 |
comparison
equal
deleted
inserted
replaced
9521:e3ce0c30798b | 9524:effa05849027 |
---|---|
1268 continue | 1268 continue |
1269 arri = fcntl.ioctl(fd, termios.TIOCGWINSZ, '\0' * 8) | 1269 arri = fcntl.ioctl(fd, termios.TIOCGWINSZ, '\0' * 8) |
1270 return array.array('h', arri)[1] | 1270 return array.array('h', arri)[1] |
1271 except ValueError: | 1271 except ValueError: |
1272 pass | 1272 pass |
1273 except IOError, e: | |
1274 if e[0] == errno.EINVAL: | |
1275 pass | |
1276 else: | |
1277 raise | |
1273 except ImportError: | 1278 except ImportError: |
1274 pass | 1279 pass |
1275 return 80 | 1280 return 80 |
1276 | 1281 |
1277 def wrap(line, hangindent, width=78): | 1282 def wrap(line, hangindent, width=78): |