From 6d1eff16a1b29becc85d88d3a41ebfdf891c4e47 Mon Sep 17 00:00:00 2001 From: Sundar Raman Date: Sun, 11 Nov 2018 13:02:25 +0800 Subject: [PATCH] Disable colorized output when CHEATCOLORS is not "true", or not set --- cheat/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat/utils.py b/cheat/utils.py index e8c850d..a6830ac 100644 --- a/cheat/utils.py +++ b/cheat/utils.py @@ -8,7 +8,7 @@ def colorize(sheet_content): """ Colorizes cheatsheet content if so configured """ # only colorize if so configured - if not 'CHEATCOLORS' in os.environ: + if not 'CHEATCOLORS' in os.environ or os.environ.get('CHEATCOLORS') != 'true': return sheet_content try: