Fix website build by adding Loader parameter to yaml.load

This commit is contained in:
Stephen Dolan committed 2023-05-28 16:41:46 +01:00
1 parent cff5336ec7
commit eb610c0323
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ env = Environment(
def load_yml_file(fn):
with open(fn) as f:
return yaml.load(f)
return yaml.load(f, Loader=yaml.Loader)
env.filters['search_id'] = lambda input: input.replace(r'`', '')
env.filters['section_id'] = lambda input: re.sub(r"[^a-zA-Z0-9_]", '', input)