diff options
author | Zuul <zuul@review.opendev.org> | 2023-04-18 12:48:06 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-04-18 12:48:06 +0000 |
commit | 4be14e28efaeb15ef60a4aa0b1b5a73c8362c26a (patch) | |
tree | 86a67c65c88f8e58a7a5118363b1910af2684c9f | |
parent | 76cffae9443c9a627f50ba5d54b187e5e8e90710 (diff) | |
parent | 18a83dbaf1e72b4b7ea3b4598328e947d5a372b2 (diff) | |
download | trove-4be14e28efaeb15ef60a4aa0b1b5a73c8362c26a.tar.gz |
Merge "Fix inspect.getargspec() deprecation warning"
-rw-r--r-- | trove/cmd/manage.py | 2 | ||||
-rw-r--r-- | trove/common/utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/trove/cmd/manage.py b/trove/cmd/manage.py index c6e3c675..424919e7 100644 --- a/trove/cmd/manage.py +++ b/trove/cmd/manage.py @@ -46,7 +46,7 @@ class Commands(object): def execute(self): exec_method = getattr(self, CONF.action.name) - args = inspect.getargspec(exec_method) + args = inspect.getfullargspec(exec_method) args.args.remove('self') kwargs = {} for arg in args.args: diff --git a/trove/common/utils.py b/trove/common/utils.py index e11a66c7..0fb34e8a 100644 --- a/trove/common/utils.py +++ b/trove/common/utils.py @@ -175,7 +175,7 @@ class MethodInspector(object): @cached_property def argspec(self): - return inspect.getargspec(self._func) + return inspect.getfullargspec(self._func) def __str__(self): optionals = ["[{0}=<{0}>]".format(k) for k, v in self.optional_args] |