equal
deleted
inserted
replaced
1221 continue |
1221 continue |
1222 arri = fcntl.ioctl(fd, termios.TIOCGWINSZ, '\0' * 8) |
1222 arri = fcntl.ioctl(fd, termios.TIOCGWINSZ, '\0' * 8) |
1223 return array.array('h', arri)[1] |
1223 return array.array('h', arri)[1] |
1224 except ValueError: |
1224 except ValueError: |
1225 pass |
1225 pass |
1226 except IOError, e: |
1226 except IOError, e: |
1227 if e[0] == errno.EINVAL: |
1227 if e[0] == errno.EINVAL: |
1228 pass |
1228 pass |
1229 else: |
1229 else: |
1230 raise |
1230 raise |
1231 except ImportError: |
1231 except ImportError: |
1232 pass |
1232 pass |
1233 return 80 |
1233 return 80 |
1234 |
1234 |
1235 def wrap(line, hangindent, width=None): |
1235 def wrap(line, hangindent, width=None): |