Ensure no colored output on Windows

Fix #228
This commit is contained in:
Julien Duponchelle 2015-06-09 10:05:00 +02:00
parent 5a32d8a779
commit 079715bc18

View File

@ -34,7 +34,7 @@ class ColouredFormatter(logging.Formatter):
message = super().format(record) message = super().format(record)
if not colour: if not colour or sys.platform.startswith("win"):
return message.replace("#RESET#", "") return message.replace("#RESET#", "")
level_no = record.levelno level_no = record.levelno