changeset 16753:9cca7b70f8df

progress: use ui._isatty
author Matt Mackall <mpm@selenic.com>
date Sun, 20 May 2012 14:37:20 -0500
parents 359fda6cb01d
children d94c470c3deb
files hgext/progress.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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: