no need to init colorama

This commit is contained in:
Kenneth Reitz
2011-04-18 12:39:20 -04:00
parent 5d7485c144
commit 872c78a5b9
-1
View File
@@ -39,7 +39,6 @@ class ColoredString(object):
@property
def color_str(self):
if sys.stdout.isatty() and not DISABLE_COLOR:
colorama.init(autoreset=True)
return '%s%s%s' % (
getattr(colorama.Fore, self.color), self.s, colorama.Fore.RESET)
else: