summaryrefslogtreecommitdiffstats
path: root/yaml/neo20.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--yaml/neo20.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/yaml/neo20.py b/yaml/neo20.py
new file mode 100644
index 0000000..7b66a9e
--- /dev/null
+++ b/yaml/neo20.py
@@ -0,0 +1,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()