summaryrefslogtreecommitdiffstats
path: root/yaml/neo20.py
diff options
context:
space:
mode:
authormartin_r <martin_r@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-12-24 01:35:48 +0000
committermartin_r <martin_r@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-12-24 01:35:48 +0000
commit3e14be8c46de1e59f3ddfbb330b2bff788c09586 (patch)
tree472106df8bf244106627c95bed3da9df68d9e165 /yaml/neo20.py
parent1196c1449bf6e5c0aa6ec19b14fd20085aad1a14 (diff)
git-svn-id: https://svn.neo-layout.org@1321 b9310e46-f624-0410-8ea1-cfbb3a30dc96
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()