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

This commit is contained in:
Jenkins 2017-03-23 16:12:42 +00:00 committed by Gerrit Code Review
commit 504f129714

View File

@ -34,7 +34,7 @@ def load_yaml(file_name):
yaml_file = '{}/{}'.format(path.dirname( yaml_file = '{}/{}'.format(path.dirname(
path.abspath(__file__)), file_name) path.abspath(__file__)), file_name)
with open(yaml_file) as f: with open(yaml_file) as f:
res = yaml.load(f) res = yaml.safe_load(f)
return res return res