Automatically disable color

This commit is contained in:
star:Kenneth Reitz
2011-03-30 22:41:40 -04:00
parent 6d151a0794
commit 9e1ea1ef91
+2
View File
@@ -27,6 +27,8 @@ DISABLE_COLOR = False
if sys.stdout.isatty():
colorama.init(autoreset=True)
else:
DISABLE_COLOR = True
class ColoredString(object):