SHA256
1
0
forked from pool/rpmlint
rpmlint/syntax-validator.py

12 lines
198 B
Python
Raw Normal View History

#!/usr/bin/python
# vim:sw=4:et
import sys
for filename in sys.argv[1:]:
try:
compile(open(filename).read(), filename, 'exec')
except Exception, e:
print e
exit(1)