From 10f6c3a432b790af92dfe6ab73eb13818eef27e9 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Tue, 20 Apr 2010 10:48:49 -0700 Subject: [PATCH] fix check to work when there is no jython --HG-- branch : trunk --- py/_io/terminalwriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/_io/terminalwriter.py b/py/_io/terminalwriter.py index aa8431b03..4996800f6 100644 --- a/py/_io/terminalwriter.py +++ b/py/_io/terminalwriter.py @@ -134,7 +134,7 @@ def ansi_print(text, esc, file=None, newline=True, flush=False): def should_do_markup(file): return hasattr(file, 'isatty') and file.isatty() \ and os.environ.get('TERM') != 'dumb' \ - and not (os._name == 'nt' and sys.platform.startswith('java')) + and not (sys.platform.startswith('java') and os._name == 'nt') class TerminalWriter(object): _esctable = dict(black=30, red=31, green=32, yellow=33,