diff options
author | Nathaniel Manista <nathaniel@google.com> | 2017-02-15 23:00:05 +0000 |
---|---|---|
committer | Nathaniel Manista <nathaniel@google.com> | 2017-02-15 23:00:05 +0000 |
commit | a52d3bb39b79039ebc66725773289035f0c002d7 (patch) | |
tree | a5fc7661dae1fde4b864afaceb3ef821c466acdb /src/python/grpcio/grpc/_auth.py | |
parent | 402aca6621e2880b39de68ee98acdf43f6a211da (diff) |
Fix and enable simplifiable-if-statement lint
Diffstat (limited to 'src/python/grpcio/grpc/_auth.py')
-rw-r--r-- | src/python/grpcio/grpc/_auth.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/python/grpcio/grpc/_auth.py b/src/python/grpcio/grpc/_auth.py index e8a90cf504..21131f85f1 100644 --- a/src/python/grpcio/grpc/_auth.py +++ b/src/python/grpcio/grpc/_auth.py @@ -48,11 +48,8 @@ class GoogleCallCredentials(grpc.AuthMetadataPlugin): # Hack to determine if these are JWT creds and we need to pass # additional_claims when getting a token - if 'additional_claims' in inspect.getargspec( - credentials.get_access_token).args: - self._is_jwt = True - else: - self._is_jwt = False + self._is_jwt = 'additional_claims' in inspect.getargspec( + credentials.get_access_token).args def __call__(self, context, callback): # MetadataPlugins cannot block (see grpc.beta.interfaces.py) |