# HG changeset patch # User Thomas Arendsen Hein # Date 1185957201 -7200 # Node ID c87de77a7d9f3b1f31a9ca3cf6dab627e01569c1 # Parent 8f157190075ec671b21d5a8e434c902a04dba09f os.isatty isn't available on Windows, so use sys.stdin.isatty() diff -r 8f157190075e -r c87de77a7d9f mercurial/ui.py --- a/mercurial/ui.py Tue Jul 31 17:18:59 2007 -0700 +++ b/mercurial/ui.py Wed Aug 01 10:33:21 2007 +0200 @@ -66,7 +66,7 @@ def isatty(self): if ui._isatty is None: - ui._isatty = os.isatty(sys.stdin.fileno()) + ui._isatty = sys.stdin.isatty() return ui._isatty def updateopts(self, verbose=False, debug=False, quiet=False,