From 99d5fd5a4c659d0e797aa1c60d65fef66dab37eb Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 26 Sep 2017 10:37:56 -0400 Subject: [PATCH] fix imports in crayons Signed-off-by: Kenneth Reitz --- pipenv/patched/crayons.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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