commit | 8aa85b41e41c090389f09c720cf8464a5293c466 | [log] [tgz] |
---|---|---|
author | Joe Gregorio <jcgregorio@google.com> | Mon Feb 25 11:18:12 2013 -0500 |
committer | Joe Gregorio <jcgregorio@google.com> | Mon Feb 25 11:18:12 2013 -0500 |
tree | 7c6e794ecd509c161671b07726e0362cf9d69c22 | |
parent | cda875206a451aa379261c6eaa642763f24a6cce [diff] [blame] |
Make from_json behavior inheritable. Fixes issue #228. Reviewed in https://codereview.appspot.com/7389046/.
diff --git a/oauth2client/client.py b/oauth2client/client.py index 4cc3cda..6b580a0 100644 --- a/oauth2client/client.py +++ b/oauth2client/client.py
@@ -554,7 +554,7 @@ data['token_expiry'], EXPIRY_FORMAT) except: data['token_expiry'] = None - retval = OAuth2Credentials( + retval = cls( data['access_token'], data['client_id'], data['client_secret'],