1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Fix website build by adding Loader parameter to yaml.load

This commit is contained in:
Stephen Dolan
2023-05-28 16:41:46 +01:00
parent cff5336ec7
commit eb610c0323

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)