Skip to content

Commit

Permalink
Merge "Replace deprecated inspect.getargspec"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed May 19, 2023
2 parents 7e5a996 + ab23f27 commit 8fe8ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/ext/cli_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def make_arguments_section(category_name, cmd_name, arguments, defaults):

def get_defaults(func):
"""Return a map of argument:default_value for specified function."""
spec = inspect.getargspec(func)
spec = inspect.getfullargspec(func)
if spec.defaults:
return dict(zip(spec.args[-len(spec.defaults):], spec.defaults))
return {}
Expand Down

0 comments on commit 8fe8ea1

Please sign in to comment.