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

[docs] Use yaml.safe_load() in build_*.py scripts (#2432)

Co-authored-by: itchyny <itchyny@cybozu.co.jp>
This commit is contained in:
nmulcahey
2023-06-05 14:47:42 -07:00
committed by GitHub
parent b7511b9b1f
commit d178ebdc94
3 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
import yaml
with open("content/manual/manual.yml") as f:
manual = yaml.load(f)
manual = yaml.safe_load(f)
for section in manual.get('sections', []):
for entry in section.get('entries', []):
for example in entry.get('examples', []):