From bd729bb2a356ee67b04849cd052d7b82cbb340d4 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sun, 22 Mar 2009 22:44:54 -0400 Subject: [PATCH] fixed typo in convertSnip.py --- convertSnip.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/convertSnip.py b/convertSnip.py index aaa4c1c..5bf2f0e 100755 --- a/convertSnip.py +++ b/convertSnip.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# Converts command-based snippets to new file-based snippet syntax +# Converts command-based snippet to new file-based snippet syntax # NOTE: This is only meant to help, it is not perfect! Check the file # afterwards to make sure it's correct. @@ -9,9 +9,9 @@ import os def Usage(): print """\ -Usage: convertSnips.py -h or --help Print this help and exit - or: convertSnips.py inputfile Print .snippets file - or: convertSnips.py inputfile outputfile Output to file""" +Usage: convertSnip.py -h or --help Print this help and exit + or: convertSnip.py inputfile Print .snippets file + or: convertSnip.py inputfile outputfile Output to file""" def FindSnippet(line): """\ @@ -64,7 +64,7 @@ def Output(lines, file = None): try: output = open(file, 'w') except IOError, error: - raise SystemExit('convertSnips.py: %s' % error) + raise SystemExit('convertSnip.py: %s' % error) output.write(outputLines) else: print outputLines, @@ -78,7 +78,7 @@ def main(argv = None): try: input = open(argv[0], 'r') except IOError, error: - raise SystemExit('convertSnips.py: %s' % error) + raise SystemExit('convertSnip.py: %s' % error) snippet = -1 for line in input.readlines():