You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
287 B
Python
14 lines
287 B
Python
11 years ago
|
#!/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))
|