highlight bug-fix

Fixed a bug in `cheat/utils.py` that would cause `highlight` to return
the wrong value when `CHEATCOLORS` was not set.
This commit is contained in:
Chris Lane 2019-01-11 15:58:21 -05:00
parent 7c7278ac8b
commit ba9051e3cd

View File

@ -8,7 +8,7 @@ def highlight(needle, haystack):
# if colorization is not configured, exit early
if os.environ.get('CHEATCOLORS') != 'true':
return sheet_content
return haystack
# otherwise, attempt to import the termcolor library
try: