From df21731c02bb538df1d89e06c01007c5d6bcdbbd Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Fri, 1 Feb 2019 11:43:38 -0500 Subject: [PATCH] Trivial Python style corrections --- cheat/colorize.py | 2 +- cheat/editor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cheat/colorize.py b/cheat/colorize.py index f9ca6ef..89d79f8 100644 --- a/cheat/colorize.py +++ b/cheat/colorize.py @@ -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 diff --git a/cheat/editor.py b/cheat/editor.py index 0da2fc4..c48351f 100644 --- a/cheat/editor.py +++ b/cheat/editor.py @@ -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.'