mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
more places to use yaml.safe_load
This commit is contained in:
parent
a9ea3136cf
commit
b75b9681a8
4 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ def get_docstring(filename, verbose=False):
|
|||
for child in M.body:
|
||||
if isinstance(child, ast.Assign):
|
||||
if 'DOCUMENTATION' in (t.id for t in child.targets):
|
||||
doc = yaml.load(child.value.s)
|
||||
doc = yaml.safe_load(child.value.s)
|
||||
if 'EXAMPLES' in (t.id for t in child.targets):
|
||||
plainexamples = child.value.s[1:] # Skip first empty line
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue