diff options
author | Pat Ferate <pferate+github@gmail.com> | 2016-07-21 14:42:27 -0700 |
---|---|---|
committer | Pat Ferate <pferate+github@gmail.com> | 2016-07-27 11:41:18 -0700 |
commit | f31e1e014fa9632fd5d71ccd03d19a14320c95d0 (patch) | |
tree | f0ec338c1f685db7c11f82a78727075384519e46 /oauth2client/contrib/dictionary_storage.py | |
parent | 25165adbc18101567ac0b75b086a072745b07f41 (diff) | |
download | oauth2client-f31e1e014fa9632fd5d71ccd03d19a14320c95d0.tar.gz |
Update imports to only Packages or Modules
Also cleaned up some nested attribute access.
Diffstat (limited to 'oauth2client/contrib/dictionary_storage.py')
-rw-r--r-- | oauth2client/contrib/dictionary_storage.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/oauth2client/contrib/dictionary_storage.py b/oauth2client/contrib/dictionary_storage.py index 8d8e6cf..6ee333f 100644 --- a/oauth2client/contrib/dictionary_storage.py +++ b/oauth2client/contrib/dictionary_storage.py @@ -14,11 +14,10 @@ """Dictionary storage for OAuth2 Credentials.""" -from oauth2client.client import OAuth2Credentials -from oauth2client.client import Storage +from oauth2client import client -class DictionaryStorage(Storage): +class DictionaryStorage(client.Storage): """Store and retrieve credentials to and from a dictionary-like object. Args: @@ -46,7 +45,7 @@ class DictionaryStorage(Storage): if serialized is None: return None - credentials = OAuth2Credentials.from_json(serialized) + credentials = client.OAuth2Credentials.from_json(serialized) credentials.set_store(self) return credentials |