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:
@@ -16,7 +16,7 @@ env = Environment(
|
|||||||
|
|
||||||
def load_yml_file(fn):
|
def load_yml_file(fn):
|
||||||
with open(fn) as f:
|
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['search_id'] = lambda input: input.replace(r'`', '')
|
||||||
env.filters['section_id'] = lambda input: re.sub(r"[^a-zA-Z0-9_]", '', input)
|
env.filters['section_id'] = lambda input: re.sub(r"[^a-zA-Z0-9_]", '', input)
|
||||||
|
|||||||
Reference in New Issue
Block a user