aboutsummaryrefslogtreecommitdiffstats
path: root/yamlexample.py
diff options
context:
space:
mode:
Diffstat (limited to 'yamlexample.py')
-rwxr-xr-xyamlexample.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yamlexample.py b/yamlexample.py
index 6bd73e1..d483467 100755
--- a/yamlexample.py
+++ b/yamlexample.py
@@ -11,9 +11,9 @@
import sys
import yaml
-for frame in yaml.load_all(sys.stdin):
+for frame in yaml.safe_load_all(sys.stdin):
print("FIGs in frame {}".format(frame['Frame']))
- for fib in frame['LIDATA']['FIC']:
+ for fib in frame['MST']['FIC']:
if fib['FIGs']:
for fig in fib['FIGs']:
print(" FIG " + fig['FIG'])