Skip to content

Commit

Permalink
Fix website build by adding Loader parameter to yaml.load
Browse files Browse the repository at this point in the history
  • Loading branch information
stedolan committed May 28, 2023
1 parent cff5336 commit eb610c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/build_website.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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)
Expand Down

0 comments on commit eb610c0

Please sign in to comment.