15 lines
203 B
Python
Executable File
15 lines
203 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
"""Try to read a YAML file and report any errors.
|
|
"""
|
|
|
|
import sys
|
|
|
|
import yaml
|
|
|
|
|
|
if __name__ == "__main__":
|
|
fh = open(sys.argv[1], 'r')
|
|
yaml.load(fh.read())
|
|
fh.close()
|