##// END OF EJS Templates
os.isatty isn't available on Windows, so use sys.stdin.isatty()
Thomas Arendsen Hein -
r5039:c87de77a default
parent child Browse files
Show More
@@ -66,7 +66,7 b' class ui(object):'
66
66
67 def isatty(self):
67 def isatty(self):
68 if ui._isatty is None:
68 if ui._isatty is None:
69 ui._isatty = os.isatty(sys.stdin.fileno())
69 ui._isatty = sys.stdin.isatty()
70 return ui._isatty
70 return ui._isatty
71
71
72 def updateopts(self, verbose=False, debug=False, quiet=False,
72 def updateopts(self, verbose=False, debug=False, quiet=False,
General Comments 0
You need to be logged in to leave comments. Login now