mirror of
https://github.com/jqlang/jq.git
synced 2025-11-16 18:22:22 +03:00
Fix website build by adding Loader parameter to yaml.load
This commit is contained in:
@@ -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