fix check to work when there is no jython
--HG-- branch : trunk
This commit is contained in:
parent
536252cb2e
commit
10f6c3a432
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue