diff --git a/edocument.py b/edocument.py index 7d8108c..6a92b22 100644 --- a/edocument.py +++ b/edocument.py @@ -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):