Merge "Replaces yaml.load() with yaml.safe_load()"

This commit is contained in:
Jenkins
2017-08-24 11:46:34 +00:00
committed by Gerrit Code Review

View File

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