Mercurial > hg
diff hgext/progress.py @ 16753:9cca7b70f8df
progress: use ui._isatty
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 20 May 2012 14:37:20 -0500 |
parents | 38caf405d010 |
children | b4744c3b991e |
line wrap: on
line diff
--- a/hgext/progress.py Sun May 20 14:33:49 2012 -0500 +++ b/hgext/progress.py Sun May 20 14:37:20 2012 -0500 @@ -38,7 +38,6 @@ import sys import time -from mercurial import util from mercurial.i18n import _ testedwith = 'internal' @@ -46,7 +45,7 @@ return ' '.join(s for s in args if s) def shouldprint(ui): - return util.isatty(sys.stderr) or ui.configbool('progress', 'assume-tty') + return ui._isatty(sys.stderr) or ui.configbool('progress', 'assume-tty') def fmtremaining(seconds): if seconds < 60: