[docs] Use yaml.safe_load() in build_*.py scripts (#2432)
Co-authored-by: itchyny <itchyny@cybozu.co.jp>
This commit is contained in:
1 parent
b7511b9b1f
commit
d178ebdc94
3 files changed
+3
-3
No files matched your search
@@ -187,7 +187,7 @@ class RoffWalker(object):
|
||||
|
||||
def load_yml_file(fn):
|
||||
with open(fn) as f:
|
||||
return yaml.load(f, Loader=yaml.Loader)
|
||||
return yaml.safe_load(f)
|
||||
|
||||
def dedent_body(body):
|
||||
lines = [re.sub(r'^ (\S)', r'\1', l) for l in body.split('\n')]
|
||||
|
||||
Reference in new issue
Block a user