install.fairie/dotfiles/.vim/plugged/syntastic/syntax_checkers/python/compile.py
Git E2E Dev Test Username fe1ac6d7e9 git subrepo clone https://github.com/vim-syntastic/syntastic.git ./dotfiles/.vim/plugged/syntastic
subrepo:
  subdir:   "dotfiles/.vim/plugged/syntastic"
  merged:   "8d5e37c29"
upstream:
  origin:   "https://github.com/vim-syntastic/syntastic.git"
  branch:   "master"
  commit:   "8d5e37c29"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:27 -04:00

13 lines
287 B
Python
Executable file

#!/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))