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,