Skip to content
Snippets Groups Projects
Commit a01da98e authored by Bert Palm's avatar Bert Palm 🎇
Browse files

yaml save loader only choice now

parent bb0924f5
No related branches found
No related tags found
No related merge requests found
......@@ -5,13 +5,7 @@ import yaml
def parseFlag(expr):
try:
# CLoader needs the debian package libyaml-dev, if it is
# not present fall back on default loader.
from yaml import CSafeLoader as SafeLoader
except ImportError:
from yaml import SafeLoader as SafeLoader
content = yaml.load("[{:}]".format(expr), Loader=SafeLoader)
content = yaml.load("[{:}]".format(expr), Loader=yaml.SafeLoader)
name = content[0]
out = {}
for pdict in content[1:]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment