[Python-modules-commits] [python-social-auth] 38/131: PEP8
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:16:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.20
in repository python-social-auth.
commit 957578efb6b50156675747dc84f8adedf5f6aeca
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date: Thu May 5 13:33:07 2016 -0300
PEP8
---
social/backends/oauth.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/social/backends/oauth.py b/social/backends/oauth.py
index 6b3b6a3..3182e52 100644
--- a/social/backends/oauth.py
+++ b/social/backends/oauth.py
@@ -360,8 +360,11 @@ class BaseOAuth2(OAuthAuth):
def extra_data(self, user, uid, response, details=None, *args, **kwargs):
"""Return access_token, token_type, and extra defined names to store in
extra_data field"""
- data = super(BaseOAuth2, self).extra_data(user, uid, response, details=details, *args, **kwargs)
- data['token_type'] = response.get('token_type') or kwargs.get('token_type')
+ data = super(BaseOAuth2, self).extra_data(user, uid, response,
+ details=details,
+ *args, **kwargs)
+ data['token_type'] = response.get('token_type') or \
+ kwargs.get('token_type')
return data
def request_access_token(self, *args, **kwargs):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list