progress: use ui._isatty
authorMatt Mackall <mpm@selenic.com>
Sun, 20 May 2012 14:37:20 -0500
changeset 16753 9cca7b70f8df
parent 16752 359fda6cb01d
child 16754 d94c470c3deb
progress: use ui._isatty
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: