##// END OF EJS Templates
scmutil: remove superfluous indent from termwidth()
Yuya Nishihara -
r30312:1ad1c501 default
parent child Browse files
Show More
@@ -48,7 +48,7 b' def termwidth(ui):'
48 TIOCGWINSZ = termios.TIOCGWINSZ # unavailable on IRIX (issue3449)
48 TIOCGWINSZ = termios.TIOCGWINSZ # unavailable on IRIX (issue3449)
49 except (AttributeError, ImportError):
49 except (AttributeError, ImportError):
50 return 80
50 return 80
51 if True:
51
52 for dev in (ui.ferr, ui.fout, ui.fin):
52 for dev in (ui.ferr, ui.fout, ui.fin):
53 try:
53 try:
54 try:
54 try:
@@ -57,7 +57,6 b' def termwidth(ui):'
57 continue
57 continue
58 if not os.isatty(fd):
58 if not os.isatty(fd):
59 continue
59 continue
60 if True:
61 arri = fcntl.ioctl(fd, TIOCGWINSZ, '\0' * 8)
60 arri = fcntl.ioctl(fd, TIOCGWINSZ, '\0' * 8)
62 width = array.array('h', arri)[1]
61 width = array.array('h', arri)[1]
63 if width > 0:
62 if width > 0:
General Comments 0
You need to be logged in to leave comments. Login now