safe_load doesnt have parameter Loader

Change-Id: I61024dcd098c68600433ef8af2e815456a7cc6ac
This commit is contained in:
Anna 2017-10-16 08:55:37 +00:00
parent 96a46ac840
commit 975e663b9e

View File

@ -16,7 +16,7 @@ import yaml
def load(stream):
try:
yaml_dict = yaml.safe_load(stream, Loader=yaml.BaseLoader)
yaml_dict = yaml.load(stream, Loader=yaml.BaseLoader)
except yaml.YAMLError as exc:
msg = 'An error occurred during YAML parsing.'
if hasattr(exc, 'problem_mark'):