diff options
Diffstat (limited to 'google/auth/iam.py')
-rw-r--r-- | google/auth/iam.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/google/auth/iam.py b/google/auth/iam.py index 277f4b7..5d63dc5 100644 --- a/google/auth/iam.py +++ b/google/auth/iam.py @@ -20,9 +20,10 @@ API`_'s auth-related functionality. """ import base64 -import http.client import json +from six.moves import http_client + from google.auth import _helpers from google.auth import crypt from google.auth import exceptions @@ -76,7 +77,7 @@ class Signer(crypt.Signer): self._credentials.before_request(self._request, method, url, headers) response = self._request(url=url, method=method, body=body, headers=headers) - if response.status != http.client.OK: + if response.status != http_client.OK: raise exceptions.TransportError( "Error calling the IAM signBlob API: {}".format(response.data) ) |