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

This commit is contained in:
Jenkins 2017-04-09 14:54:37 +00:00 committed by Gerrit Code Review
commit 8dbb1e76c0

View File

@ -79,7 +79,7 @@ def main(argv=sys.argv):
# convert config to dict # convert config to dict
if not isinstance(config, dict): if not isinstance(config, dict):
config = ast.literal_eval(json.dumps(yaml.load(config))) config = ast.literal_eval(json.dumps(yaml.safe_load(config)))
os.chdir(proj) os.chdir(proj)