changeset 12654 | 646eb9337c87 |
parent 11555 | d8d0fc3988ca |
child 12689 | c52c629ce19e |
--- a/hgext/progress.py Sat Oct 09 18:04:36 2010 +0200 +++ b/hgext/progress.py Sat Oct 09 09:55:52 2010 -0500 @@ -51,7 +51,8 @@ return ' '.join(s for s in args if s) def shouldprint(ui): - return sys.stderr.isatty() or ui.configbool('progress', 'assume-tty') + return (getattr(sys.stderr, 'isatty', None) and + (sys.stderr.isatty() or ui.configbool('progress', 'assume-tty'))) class progbar(object): def __init__(self, ui):