From e651de5ddedba0608dfebeb79cb9bd72fa0a245b Mon Sep 17 00:00:00 2001 From: blackguest Date: Tue, 29 Oct 2013 16:19:51 -0500 Subject: [PATCH] Minor typo and pep8 quote fixes. --- cheat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cheat b/cheat index db9557b..9ab4e3e 100755 --- a/cheat +++ b/cheat @@ -113,7 +113,7 @@ class CheatSheets(object): 'must set your EDITOR environment variable ' 'to your favorite editor\'s path.') exit(1) - elif os.environ['EDITOR'] == "": + elif os.environ['EDITOR'] == '': print >> sys.stderr, ('Your EDITOR environment variable is set ' 'to nothing, in order to create/edit a ' 'cheatsheet your must set it to a valid ' @@ -139,7 +139,7 @@ class CheatSheets(object): else: subprocess.call(editor + [os.path.join(cs.cheat_dir, cheat)]) except OSError, e: - print >> sys.stderr, ("Could not launch `%s` as your editor : %s" + print >> sys.stderr, ('Could not launch `%s` as your editor : %s' % (editor[0], e.strerror)) exit(1) @@ -226,7 +226,7 @@ def main(): parser_group = parser.add_mutually_exclusive_group() parser_group.add_argument('sheet', metavar='cheatsheet', action='store', type=str, nargs='?', - help='Look at ') + help='Look at ') parser_group.add_argument('-e', '--edit', metavar='cheatsheet', action=EditSheet, type=str, nargs=1, help='Edit ')