mirror of
https://github.com/amix/vimrc
synced 2025-07-13 23:05:01 +08:00
renamed sources_non_forked folder to bundle
This commit is contained in:
13
bundle/syntastic/syntax_checkers/python/compile.py
Normal file
13
bundle/syntastic/syntax_checkers/python/compile.py
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
from sys import argv, exit
|
||||
|
||||
|
||||
if len(argv) != 2:
|
||||
exit(1)
|
||||
|
||||
try:
|
||||
compile(open(argv[1]).read(), argv[1], 'exec', 0, 1)
|
||||
except SyntaxError as err:
|
||||
print('%s:%s:%s: %s' % (err.filename, err.lineno, err.offset, err.msg))
|
Reference in New Issue
Block a user