blob: 7b66a9e0857ea3eb4d5f13d2652b418ce463ae7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import yaml, sys
try:
quelle = open("neo20.yaml")
try:
wurzel = yaml.load(quelle) #_all entfernen
finally:
quelle.close()
except IOError:
pass
except yaml.YAMLError, exc:
if hasattr(exc, 'problem_mark'):
mark = exc.problem_mark
print "YAML-Parserfehler: (%s:%s)" % (mark.line+1, mark.column+1)
sys.stdin.read()
|