equal
deleted
inserted
replaced
71 os.path.expanduser(b'~/.hgrc'), |
71 os.path.expanduser(b'~/.hgrc'), |
72 os.path.join(confighome, b'hg', b'hgrc'), |
72 os.path.join(confighome, b'hg', b'hgrc'), |
73 ] |
73 ] |
74 |
74 |
75 |
75 |
76 def termsize(ui: "uimod.ui") -> Tuple[int, int]: |
76 def termsize(ui: uimod.ui) -> Tuple[int, int]: |
77 try: |
77 try: |
78 import termios |
78 import termios |
79 |
79 |
80 TIOCGWINSZ = termios.TIOCGWINSZ # unavailable on IRIX (issue3449) |
80 TIOCGWINSZ = termios.TIOCGWINSZ # unavailable on IRIX (issue3449) |
81 except (AttributeError, ImportError): |
81 except (AttributeError, ImportError): |