Mercurial > hg
changeset 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 | 8f157190075e |
children | 4f34d9b2568e |
files | mercurial/ui.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,