log: Don't use colorama on POSIX

This commit is contained in:
Florian Bruhin 2016-04-30 16:59:59 +02:00
parent 365a6ec3ad
commit 48d7185c94

View File

@ -235,7 +235,7 @@ def _init_formatters(level, color):
sys.stderr.isatty() and color):
console_formatter = colorlog.ColoredFormatter(
console_fmt_colored, DATEFMT, log_colors=LOG_COLORS)
if colorama:
if colorama and os.name != 'posix':
use_colorama = True
else:
console_formatter = logging.Formatter(console_fmt, DATEFMT, '{')