commit: 5a731acab6f229b73b204f302107de826ff5664e
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 8 21:15:03 2020 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Oct 8 21:16:32 2020 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=5a731aca
catalyst: Fix typo
Fixes: 3c5ef2e7 ("log: new logging module to standardize catalyst output")
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
(cherry picked from commit b3f0a3535e3550ed7d0dbd3100e43b82e9b34c3b)
catalyst/log.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/catalyst/log.py b/catalyst/log.py
index d640dece..26f9a591 100644
--- a/catalyst/log.py
+++ b/catalyst/log.py
@@ -74,7 +74,7 @@ class CatalystFormatter(logging.Formatter):
@staticmethod
def detect_color():
"""Figure out whether the runtime env wants color"""
- if 'NOCOLOR' is os.environ:
+ if 'NOCOLOR' in os.environ:
return False
return os.isatty(sys.stdout.fileno())