[Python-modules-commits] [python-social-auth] 258/322: Remove single-use var

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


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

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

commit 4f3b63ec875e08eadf93016969c572ac23bf684f
Author: Matías Aguirre <matiasaguirre at gmail.com>
Date:   Wed Apr 15 18:16:16 2015 -0300

    Remove single-use var
---
 social/backends/facebook.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/social/backends/facebook.py b/social/backends/facebook.py
index f3a3b07..dc10d4c 100644
--- a/social/backends/facebook.py
+++ b/social/backends/facebook.py
@@ -70,8 +70,7 @@ class FacebookOAuth2(BaseOAuth2):
             raise AuthMissingParameter(self, 'code')
         state = self.validate_state()
         key, secret = self.get_key_and_secret()
-        url = self.ACCESS_TOKEN_URL
-        response = self.get_json(url, params={
+        response = self.get_json(self.ACCESS_TOKEN_URL, params={
             'client_id': key,
             'redirect_uri': self.get_redirect_uri(state),
             'client_secret': secret,

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