[Python-modules-commits] [python-social-auth] 49/89: PEP8

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:15:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.15
in repository python-social-auth.

commit 895f8a0e1f2643cb5b15de6ec1b5d3824ffd6600
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Sat Mar 26 04:06:39 2016 -0300

    PEP8
---
 social/backends/itembase.py | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/social/backends/itembase.py b/social/backends/itembase.py
index 238db73..8419f38 100644
--- a/social/backends/itembase.py
+++ b/social/backends/itembase.py
@@ -34,11 +34,13 @@ class ItembaseOAuth2(BaseOAuth2):
         return data
 
     def extra_data(self, user, uid, response, details=None, *args, **kwargs):
-        data = BaseOAuth2.extra_data(self, user, uid, response, details=details, *args, **kwargs)
+        data = BaseOAuth2.extra_data(self, user, uid, response, details=details,
+                                     *args, **kwargs)
         return self.add_expires(data)
 
     def process_refresh_token_response(self, response, *args, **kwargs):
-        data = BaseOAuth2.process_refresh_token_response(self, response, *args, **kwargs)
+        data = BaseOAuth2.process_refresh_token_response(self, response,
+                                                         *args, **kwargs)
         return self.add_expires(data)
 
     def get_user_details(self, response):
@@ -46,14 +48,16 @@ class ItembaseOAuth2(BaseOAuth2):
         return response
 
     def user_data(self, access_token, *args, **kwargs):
-        return self.get_json(self.USER_DETAILS_URL,
-                             headers={'Authorization': 'Bearer {0}'.format(access_token)})
+        return self.get_json(self.USER_DETAILS_URL, headers={
+            'Authorization': 'Bearer {0}'.format(access_token)
+        })
 
     def activation_data(self, response):
         # returns activation_data dict with activation_url inside
         # see http://developers.itembase.com/authentication/activation
-        return self.get_json(self.ACTIVATION_ENDPOINT,
-                             headers={'Authorization': 'Bearer {0}'.format(response['access_token'])})
+        return self.get_json(self.ACTIVATION_ENDPOINT, headers={
+            'Authorization': 'Bearer {0}'.format(response['access_token'])
+        })
 
     @handle_http_errors
     def auth_complete(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