mirror of https://github.com/cheat/cheat.git
Trivial Python style corrections
This commit is contained in:
parent
a657699a24
commit
df21731c02
|
@ -29,7 +29,7 @@ class Colorize:
|
||||||
""" Applies syntax highlighting """
|
""" Applies syntax highlighting """
|
||||||
|
|
||||||
# only colorize if cheat_colors is true, and stdout is a tty
|
# 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
|
return sheet_content
|
||||||
|
|
||||||
# don't attempt to colorize an empty cheatsheet
|
# don't attempt to colorize an empty cheatsheet
|
||||||
|
|
|
@ -12,7 +12,7 @@ class Editor:
|
||||||
""" Determines the user's preferred editor """
|
""" Determines the user's preferred editor """
|
||||||
|
|
||||||
# assert that the editor is set
|
# assert that the editor is set
|
||||||
if (not self._config.cheat_editor):
|
if not self._config.cheat_editor:
|
||||||
Utils.die(
|
Utils.die(
|
||||||
'You must set a CHEAT_EDITOR, VISUAL, or EDITOR environment '
|
'You must set a CHEAT_EDITOR, VISUAL, or EDITOR environment '
|
||||||
'variable or setting in order to create/edit a cheatsheet.'
|
'variable or setting in order to create/edit a cheatsheet.'
|
||||||
|
|
Loading…
Reference in New Issue