Trivial Python style corrections

This commit is contained in:
Chris Lane 2019-02-01 11:43:38 -05:00
parent a657699a24
commit df21731c02
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class Colorize:
""" Applies syntax highlighting """
# only colorize if cheat_colors is true, and stdout is a tty
if (self._config.cheat_colors is False or not sys.stdout.isatty()):
if self._config.cheat_colors is False or not sys.stdout.isatty():
return sheet_content
# don't attempt to colorize an empty cheatsheet

View File

@ -12,7 +12,7 @@ class Editor:
""" Determines the user's preferred editor """
# assert that the editor is set
if (not self._config.cheat_editor):
if not self._config.cheat_editor:
Utils.die(
'You must set a CHEAT_EDITOR, VISUAL, or EDITOR environment '
'variable or setting in order to create/edit a cheatsheet.'