diff options
Diffstat (limited to 'google/auth/identity_pool.py')
-rw-r--r-- | google/auth/identity_pool.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/google/auth/identity_pool.py b/google/auth/identity_pool.py index 901fd62..fb33d77 100644 --- a/google/auth/identity_pool.py +++ b/google/auth/identity_pool.py @@ -33,7 +33,11 @@ external_account JSON file to retrieve credentials and exchange them for Google access tokens. """ -from collections.abc import Mapping +try: + from collections.abc import Mapping +# Python 2.7 compatibility +except ImportError: # pragma: NO COVER + from collections import Mapping import io import json import os |