diff --git a/pipenv/patched/crayons.py b/pipenv/patched/crayons.py index 83480ea8..4087c6e0 100644 --- a/pipenv/patched/crayons.py +++ b/pipenv/patched/crayons.py @@ -12,10 +12,10 @@ import os import re import sys -PY3 = sys.version_info[0] >= 3 - import colorama +PY3 = sys.version_info[0] >= 3 + __all__ = ( 'red', 'green', 'yellow', 'blue', 'black', 'magenta', 'cyan', 'white', @@ -70,7 +70,6 @@ class ColoredString(object): c = '%s%s%s%s%s' % (getattr(colorama.Fore, self.color), getattr(colorama.Style, style), self.s, colorama.Fore.RESET, getattr(colorama.Style, 'NORMAL')) if self.always_color: - print(self.always_color) return c elif sys.stdout.isatty() and not DISABLE_COLOR: return c