Skip to content

Commit

Permalink
Replace inspect.getargspec with inspect.getfullargspec.
Browse files Browse the repository at this point in the history
getargspec is deprecated since 3.5. This generates exccessive warnings.

Change-Id: Id5de4216aff96cd7fb1e05a59d67cd83ac696b4f
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/4684326
Reviewed-by: Sean McCullough <[email protected]>
Commit-Queue: Sean McCullough <[email protected]>
Auto-Submit: Hao Wu <[email protected]>
  • Loading branch information
wuhao5 authored and Catapult LUCI CQ committed Jul 13, 2023
1 parent 7e8097a commit 2f01742
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_wrapper(func):

category = "python"

arg_spec = inspect.getargspec(func)
arg_spec = inspect.getfullargspec(func)
is_method = arg_spec.args and arg_spec.args[0] == "self"

def arg_spec_tuple(name):
Expand Down

0 comments on commit 2f01742

Please sign in to comment.