Show More
@@ -51,7 +51,8 b' def spacejoin(*args):' | |||||
51 | return ' '.join(s for s in args if s) |
|
51 | return ' '.join(s for s in args if s) | |
52 |
|
52 | |||
53 | def shouldprint(ui): |
|
53 | def shouldprint(ui): | |
54 | return sys.stderr.isatty() or ui.configbool('progress', 'assume-tty') |
|
54 | return (getattr(sys.stderr, 'isatty', None) and | |
|
55 | (sys.stderr.isatty() or ui.configbool('progress', 'assume-tty'))) | |||
55 |
|
56 | |||
56 | class progbar(object): |
|
57 | class progbar(object): | |
57 | def __init__(self, ui): |
|
58 | def __init__(self, ui): |
General Comments 0
You need to be logged in to leave comments.
Login now