Fix website build by adding Loader parameter to yaml.load
This commit is contained in:
1 parent
cff5336ec7
commit
eb610c0323
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user