Replace deprecated Python “inspect.getargspec” (#29963)
This has been deprecated since Python 3.0 and is removed in Python 3.11. We can use “inspect.getfullargspec” instead. Fixes #29962.
This commit is contained in:
parent
7417386956
commit
c805c4e2d4
|
|
@ -30,7 +30,7 @@ class GoogleCallCredentials(grpc.AuthMetadataPlugin):
|
|||
self._credentials = credentials
|
||||
# Hack to determine if these are JWT creds and we need to pass
|
||||
# additional_claims when getting a token
|
||||
self._is_jwt = 'additional_claims' in inspect.getargspec( # pylint: disable=deprecated-method
|
||||
self._is_jwt = 'additional_claims' in inspect.getfullargspec(
|
||||
credentials.get_access_token).args
|
||||
|
||||
def __call__(self, context, callback):
|
||||
|
|
|
|||
Loading…
Reference in New Issue