Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced all load() usages with full_load() #138

Merged
merged 1 commit into from
May 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _doc_to_text(text):

@staticmethod
def _get_module_params(module):
docs = yaml.load(module.DOCUMENTATION)
docs = yaml.full_load(module.DOCUMENTATION)
return {k: {
'description': ModuleDocGenerator._doc_to_text(v.get('description')),
'required': v.get('required', False),
Expand All @@ -279,7 +279,7 @@ def _get_module_params(module):

@staticmethod
def _get_module_return_values(module):
return_params = yaml.load(module.RETURN)
return_params = yaml.full_load(module.RETURN)
return {k: {
'description': ModuleDocGenerator._doc_to_text(v.get('description')),
'returned': v.get('returned', ''),
Expand Down