# HG changeset patch # User Matt Mackall # Date 1337542640 18000 # Node ID 9cca7b70f8dfffcc986804f001be74a0bfc4f0df # Parent 359fda6cb01d79078bf06041c9a2d88cd8c4170a progress: use ui._isatty diff -r 359fda6cb01d -r 9cca7b70f8df hgext/progress.py --- 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: