Merge "Use pyyaml safe_load to avoid deprecation warning"

This commit is contained in:
Zuul 2019-05-15 18:46:53 +00:00 committed by Gerrit Code Review
commit af7cce55d7
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def load(directory='queries'):
data = []
for fname in bugs:
bugnum = os.path.basename(fname).rstrip('.yaml')
query = yaml.load(open(fname).read())
query = yaml.safe_load(open(fname).read())
query['bug'] = bugnum
# By default we filter out non-voting jobs, but in certain cases we
# want to show failures for non-voting jobs in the graph while we