From 43616ea69690d25e028bd60a4336b115d3aeafc9 Mon Sep 17 00:00:00 2001 From: Damnever Date: Thu, 13 Aug 2015 15:59:39 +0800 Subject: [PATCH] _Colorizer().notty is more clear --- rq/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/utils.py b/rq/utils.py index f2e1897..fd94abd 100644 --- a/rq/utils.py +++ b/rq/utils.py @@ -60,7 +60,7 @@ class _Colorizer(object): return self.codes["reset"] def colorize(self, color_key, text): - if not sys.stdout.isatty(): + if self.notty: return text else: return self.codes[color_key] + text + self.codes["reset"]