[Python-modules-commits] [python-social-auth] 107/131: PEP8
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:17:08 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 b25de586550259976a2921332f4c7d99c6d0a1ed
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date: Sat Aug 6 04:32:35 2016 -0300
PEP8
---
social/backends/uber.py | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/social/backends/uber.py b/social/backends/uber.py
index d83f9b0..6b1463b 100644
--- a/social/backends/uber.py
+++ b/social/backends/uber.py
@@ -19,8 +19,11 @@ class UberOAuth2(BaseOAuth2):
def get_user_details(self, response):
"""Return user details from Uber account"""
email = response.get('email', '')
- fullname, first_name, last_name = self.get_user_names('', response.get('first_name', ''),
- response.get('last_name', ''))
+ fullname, first_name, last_name = self.get_user_names(
+ '',
+ response.get('first_name', ''),
+ response.get('last_name', '')
+ )
return {'username': email,
'email': email,
'fullname': fullname,
@@ -29,12 +32,8 @@ class UberOAuth2(BaseOAuth2):
def user_data(self, access_token, *args, **kwargs):
"""Loads user data from service"""
- client_id, client_secret = self.get_key_and_secret()
response = kwargs.pop('response')
-
return self.get_json('https://api.uber.com/v1/me', headers={
- 'Authorization': '{0} {1}'.format(
- response.get('token_type'), access_token
- )
- }
- )
+ 'Authorization': '{0} {1}'.format(response.get('token_type'),
+ access_token)
+ })
--
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