[Python-modules-commits] [python-social-auth] 34/89: Fix wrong evaluation of boolean kwargs

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:15:44 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 482b8b1f0589465f0c84555276840db3e7cacfa9
Author: Fabian Alknes <fabian.alknes at gmail.com>
Date:   Tue Jan 19 15:26:42 2016 +0100

    Fix wrong evaluation of boolean kwargs
---
 social/pipeline/user.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/social/pipeline/user.py b/social/pipeline/user.py
index 38784ca..a46fc3e 100644
--- a/social/pipeline/user.py
+++ b/social/pipeline/user.py
@@ -59,9 +59,8 @@ def create_user(strategy, details, user=None, *args, **kwargs):
     if user:
         return {'is_new': False}
 
-    fields = dict((name, kwargs.get(name) or details.get(name))
-                  for name in strategy.setting('USER_FIELDS',
-                                               USER_FIELDS))
+    fields = dict((name, kwargs.get(name, details.get(name)))
+                  for name in strategy.setting('USER_FIELDS', USER_FIELDS))
     if not fields:
         return
 

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