Replace deprecated (and not advised) yaml.load() with yaml.safe_load().

This commit is contained in:
Jimmy Berry 2019-03-19 17:13:11 -05:00
parent 819d437e72
commit 78bfdb872f
2 changed files with 2 additions and 2 deletions

View File

@ -698,7 +698,7 @@ class StagingAPI(object):
def load_prj_pseudometa(self, description_text):
try:
data = yaml.load(description_text)
data = yaml.safe_load(description_text)
if isinstance(data, str) or data is None:
data = {}
except (TypeError, AttributeError):

View File

@ -94,7 +94,7 @@ class ToTestBase(object):
def load_issues_to_ignore(self):
text = self.api.attribute_value_load('IgnoredIssues')
if text:
root = yaml.load(text)
root = yaml.safe_load(text)
self.issues_to_ignore = root.get('last_seen')
else:
self.issues_to_ignore = dict()