Commit 3a532693 authored by Raphaël Hertzog's avatar Raphaël Hertzog

Use yaml.safe_load() instead of yaml.load()

This silences the new warning.
parent 9e6c3c67
Pipeline #66848 passed with stage
in 30 minutes and 30 seconds
......@@ -2360,7 +2360,7 @@ class UpdateExcusesTaskActionItemTest(TestCase):
Sets the stub content of the update_excuses.yaml that the task will
have access to.
self.task._get_excuses_yaml.return_value = yaml.load(content)
self.task._get_excuses_yaml.return_value = yaml.safe_load(content)
def set_update_excuses_content_from_file(self, file_name):
......@@ -1215,7 +1215,7 @@ class UpdateExcusesTask(BaseTask):
if content is None:
return yaml.load(content)
return yaml.safe_load(content)
def execute_main(self):
content_lines = self._get_excuses_yaml()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment