[Python-modules-commits] [python-social-auth] 79/89: Style doc and code

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:15:58 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 2c1494ce32244240fab3895890ab846788741cb8
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Mon Mar 28 03:37:42 2016 -0300

    Style doc and code
---
 docs/backends/fitbit.rst  | 14 +++++++++-----
 social/backends/fitbit.py |  3 ++-
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/docs/backends/fitbit.rst b/docs/backends/fitbit.rst
index 8bd3389..057a84c 100644
--- a/docs/backends/fitbit.rst
+++ b/docs/backends/fitbit.rst
@@ -1,17 +1,20 @@
 Fitbit
 ======
 
-Fitbit supports both OAuth 2.0 and OAuth 1.0a logins.
-OAuth 2 is preferred for new integrations, as OAuth 1.0a does not support getting heartrate or location and will be deprecated in the future.
+Fitbit supports both OAuth 2.0 and OAuth 1.0a logins. OAuth 2 is
+preferred for new integrations, as OAuth 1.0a does not support getting
+heartrate or location and will be deprecated in the future.
 
 1. Register a new OAuth Consumer `here`_
 
-2. Configure the appropriate settings for OAuth 2.0 or OAuth 1.0a (see below).
+2. Configure the appropriate settings for OAuth 2.0 or OAuth 1.0a (see
+   below).
 
 OAuth 2.0 or OAuth 1.0a
 -----------------------
 
-- Fill ``Consumer Key`` and ``Consumer Secret`` values in the settings::
+- Fill ``Consumer Key`` and ``Consumer Secret`` values in the
+  settings::
 
     SOCIAL_AUTH_FITBIT_KEY = '<your-consumer-key>'
     SOCIAL_AUTH_FITBIT_SECRET = '<your-consumer-secret>'
@@ -19,7 +22,8 @@ OAuth 2.0 or OAuth 1.0a
 OAuth 2.0 specific settings
 ---------------------------
 
-By default, only the ``profile`` scope is requested. To request more scopes, set SOCIAL_AUTH_FITBIT_SCOPE::
+By default, only the ``profile`` scope is requested. To request more
+scopes, set SOCIAL_AUTH_FITBIT_SCOPE::
 
     SOCIAL_AUTH_FITBIT_SCOPE = [
       'activity',
diff --git a/social/backends/fitbit.py b/social/backends/fitbit.py
index 16c4f77..35d9bf1 100644
--- a/social/backends/fitbit.py
+++ b/social/backends/fitbit.py
@@ -56,9 +56,10 @@ class FitbitOAuth2(BaseOAuth2):
             'https://api.fitbit.com/1/user/-/profile.json',
             headers=auth_header
         )['user']
+
     def auth_headers(self):
         return {
             'Authorization': 'Basic {0}'.format(base64.urlsafe_b64encode(
                 ('{0}:{1}'.format(*self.get_key_and_secret()).encode())
             ))
-        }
\ No newline at end of file
+        }

-- 
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