[Python-modules-commits] [python-social-auth] 50/131: PEP8
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:17:00 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 bc43e2572f5d94f305b494892d7a68dcc2b4d365
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date: Sat Jun 4 21:58:31 2016 -0300
PEP8
---
docs/backends/sketchfab.rst | 8 +++++---
social/backends/sketchfab.py | 5 +++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/docs/backends/sketchfab.rst b/docs/backends/sketchfab.rst
index 865b8c4..c69a388 100644
--- a/docs/backends/sketchfab.rst
+++ b/docs/backends/sketchfab.rst
@@ -5,11 +5,13 @@ Sketchfab uses OAuth 2 for authentication.
To use:
-- Follow the steps at `Sketchfab Oauth`_, and ask for an ``Authorization code`` grant type.
+- Follow the steps at `Sketchfab Oauth`_, and ask for an
+ ``Authorization code`` grant type.
-- Fill the ``Client id/key`` and ``Client Secret`` values you received in your django settings::
+- Fill the ``Client id/key`` and ``Client Secret`` values you received
+ in your django settings::
SOCIAL_AUTH_SKETCHFAB_KEY = ''
SOCIAL_AUTH_SKETCHFAB_SECRET = ''
-.. _Sketchfab Oauth: https://sketchfab.com/developers/oauth
\ No newline at end of file
+.. _Sketchfab Oauth: https://sketchfab.com/developers/oauth
diff --git a/social/backends/sketchfab.py b/social/backends/sketchfab.py
index 7614041..cb19ef5 100644
--- a/social/backends/sketchfab.py
+++ b/social/backends/sketchfab.py
@@ -34,5 +34,6 @@ class SketchfabOAuth2(BaseOAuth2):
def user_data(self, access_token, *args, **kwargs):
"""Loads user data from service"""
- return self.get_json('https://sketchfab.com/v2/users/me',
- headers={'Authorization': 'Bearer {0}'.format(access_token)})
+ return self.get_json('https://sketchfab.com/v2/users/me', headers={
+ 'Authorization': 'Bearer {0}'.format(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