##// END OF EJS Templates
progress: use ui._isatty
Matt Mackall -
r16753:9cca7b70 default
parent child Browse files
Show More
@@ -38,7 +38,6 b' characters.'
38 38 import sys
39 39 import time
40 40
41 from mercurial import util
42 41 from mercurial.i18n import _
43 42 testedwith = 'internal'
44 43
@@ -46,7 +45,7 b' def spacejoin(*args):'
46 45 return ' '.join(s for s in args if s)
47 46
48 47 def shouldprint(ui):
49 return util.isatty(sys.stderr) or ui.configbool('progress', 'assume-tty')
48 return ui._isatty(sys.stderr) or ui.configbool('progress', 'assume-tty')
50 49
51 50 def fmtremaining(seconds):
52 51 if seconds < 60:
General Comments 0
You need to be logged in to leave comments. Login now