1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2026-02-18 06:55:45 +01:00

fixed typo in convertSnip.py

This commit is contained in:
Michael Sanders
2009-03-22 22:44:54 -04:00
parent 18bcca6a42
commit bd729bb2a3

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python #!/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 # NOTE: This is only meant to help, it is not perfect! Check the file
# afterwards to make sure it's correct. # afterwards to make sure it's correct.
@@ -9,9 +9,9 @@ import os
def Usage(): def Usage():
print """\ print """\
Usage: convertSnips.py -h or --help Print this help and exit Usage: convertSnip.py -h or --help Print this help and exit
or: convertSnips.py inputfile Print .snippets file or: convertSnip.py inputfile Print .snippets file
or: convertSnips.py inputfile outputfile Output to file""" or: convertSnip.py inputfile outputfile Output to file"""
def FindSnippet(line): def FindSnippet(line):
"""\ """\
@@ -64,7 +64,7 @@ def Output(lines, file = None):
try: try:
output = open(file, 'w') output = open(file, 'w')
except IOError, error: except IOError, error:
raise SystemExit('convertSnips.py: %s' % error) raise SystemExit('convertSnip.py: %s' % error)
output.write(outputLines) output.write(outputLines)
else: else:
print outputLines, print outputLines,
@@ -78,7 +78,7 @@ def main(argv = None):
try: try:
input = open(argv[0], 'r') input = open(argv[0], 'r')
except IOError, error: except IOError, error:
raise SystemExit('convertSnips.py: %s' % error) raise SystemExit('convertSnip.py: %s' % error)
snippet = -1 snippet = -1
for line in input.readlines(): for line in input.readlines():