From 9e1ea1ef91bfda7f213db845904885de11f7c9c0 Mon Sep 17 00:00:00 2001 From: "star:Kenneth Reitz" Date: Wed, 30 Mar 2011 22:41:40 -0400 Subject: [PATCH] Automatically disable color --- clint/textui/colored.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clint/textui/colored.py b/clint/textui/colored.py index dcee961..d472103 100644 --- a/clint/textui/colored.py +++ b/clint/textui/colored.py @@ -27,6 +27,8 @@ DISABLE_COLOR = False if sys.stdout.isatty(): colorama.init(autoreset=True) +else: + DISABLE_COLOR = True class ColoredString(object):