[Python-modules-commits] [python-social-auth] 58/71: Typos and PEP8

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


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

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

commit b3642603f6170592f9a6994261852622314a4de8
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Tue Dec 8 13:21:51 2015 -0300

    Typos and PEP8
---
 docs/backends/qq.rst  | 7 ++++---
 social/backends/qq.py | 7 +++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/docs/backends/qq.rst b/docs/backends/qq.rst
index 97b7486..f0c1ef6 100644
--- a/docs/backends/qq.rst
+++ b/docs/backends/qq.rst
@@ -22,9 +22,10 @@ QQ implemented OAuth2 protocol for their authentication mechanism. To enable
 
 The values for ``nickname``, ``figureurl_qq_1`` and ``gender`` will be stored
 in the ``extra_data`` field. The ``nickname`` will be used as the account
-username. ``figureurl_qq_1`` can be used as the profile image. sometimes
-nickname will duplicate with another qq account, to avoid this issue it's
-possible to use ``openid`` as ``username`` by define this setting::
+username. ``figureurl_qq_1`` can be used as the profile image.
+
+Sometimes nickname will duplicate with another ``qq`` account, to avoid this
+issue it's possible to use ``openid`` as ``username`` by define this setting::
 
     SOCIAL_AUTH_QQ_USE_OPENID_AS_USERNAME = True
 
diff --git a/social/backends/qq.py b/social/backends/qq.py
index 55c41f9..34f36b3 100644
--- a/social/backends/qq.py
+++ b/social/backends/qq.py
@@ -26,10 +26,9 @@ class QQOAuth2(BaseOAuth2):
 
     def get_user_details(self, response):
         """
-        Return user detail from QQ account
-        sometimes nickname will duplicate with another qq account, to avoid
-        this issue it's possible to use `openid` as `username` by define
-        `SOCIAL_AUTH_QQ_USE_OPENID_AS_USERNAME = True`
+        Return user detail from QQ account sometimes nickname will duplicate
+        with another qq account, to avoid this issue it's possible to use
+        openid as username.
         """
         if self.setting('USE_OPENID_AS_USERNAME', False):
             username = response.get('openid', '')

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