From bd4c49634f691ebd3ef541532c07f2d43f2db4a3 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sun, 22 Aug 2021 21:43:15 +0200 Subject: [PATCH] Use SafeLoader for Yaml parsing. --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index 64919fa..2284a46 100755 --- a/convert.py +++ b/convert.py @@ -45,7 +45,7 @@ def getField(item, designation): # Load record mappings from Yaml file -RECORD_MAP = yaml.load(open("mappings.yml", "rt")) +RECORD_MAP = yaml.load(open("mappings.yml", "rt"), Loader=yaml.SafeLoader) for item in opif: