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
1 changed files with 1 additions and 1 deletions

View File

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