aboutsummaryrefslogtreecommitdiff
path: root/google/auth/_service_account_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'google/auth/_service_account_info.py')
-rw-r--r--google/auth/_service_account_info.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/google/auth/_service_account_info.py b/google/auth/_service_account_info.py
index 54a40e9..3d340c7 100644
--- a/google/auth/_service_account_info.py
+++ b/google/auth/_service_account_info.py
@@ -17,6 +17,8 @@
import io
import json
+import six
+
from google.auth import crypt
@@ -41,7 +43,7 @@ def from_dict(data, require=None):
"""
keys_needed = set(require if require is not None else [])
- missing = keys_needed.difference(data)
+ missing = keys_needed.difference(six.iterkeys(data))
if missing:
raise ValueError(