fix check to work when there is no jython

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-04-20 10:48:49 -07:00
parent 536252cb2e
commit 10f6c3a432
1 changed files with 1 additions and 1 deletions

View File

@ -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,