Migrate PyYAML to 6.0.

This commit refs #24407
This commit is contained in:
José Antonio Díaz Miralles 2022-10-05 12:13:13 +02:00
parent 7a275d51d6
commit b64f6f5ceb
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class EdocumentImportMixin(EdocumentMixin):
def _template(cls):
template_path = cls._get_template_name()
with open(template_path, encoding='utf-8') as fp:
return yaml.load(fp.read())
return yaml.load(fp.read(), Loader=yaml.Loader)
@classmethod
def _get_document_manager(cls):