[Python-modules-commits] [python-social-auth] 122/322: Fixed issue: GET dictionary is immutable. I am not using MergeDict because it will be deprecated

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:12:57 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 0884f3a1bce42a1a385689b98f42604fe6db0517
Author: Alejandro Baronetti <baroale at gmail.com>
Date:   Sat Feb 14 11:14:11 2015 +0000

    Fixed issue: GET dictionary is immutable. I am not using MergeDict because it will be deprecated
---
 social/strategies/django_strategy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/strategies/django_strategy.py b/social/strategies/django_strategy.py
index 0cc6a04..d0c4390 100644
--- a/social/strategies/django_strategy.py
+++ b/social/strategies/django_strategy.py
@@ -36,7 +36,7 @@ class DjangoStrategy(BaseStrategy):
         if not self.request:
             return {}
         if merge:
-            data = self.request.GET
+            data = self.request.GET.copy()
             data.update(self.request.POST)
         elif self.request.method == 'POST':
             data = self.request.POST

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