Trivial Python style corrections
This commit is contained in:
1 parent
a657699a24
commit
df21731c02
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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.'
|
||||
|
||||
Reference in new issue
Block a user