comparison mercurial/ui.py @ 5039:c87de77a7d9f

os.isatty isn't available on Windows, so use sys.stdin.isatty()
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 01 Aug 2007 10:33:21 +0200
parents ca0d02222d6a
children 67afecb8d6cc
comparison
equal deleted inserted replaced
5038:8f157190075e 5039:c87de77a7d9f
64 def __getattr__(self, key): 64 def __getattr__(self, key):
65 return getattr(self.parentui, key) 65 return getattr(self.parentui, key)
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,
73 interactive=True, traceback=False, config=[]): 73 interactive=True, traceback=False, config=[]):
74 for section, name, value in config: 74 for section, name, value in config: