From 87c832043473a6fdadd81d14095c68678fdd9713 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Sat, 5 May 2012 21:23:39 -0300 Subject: [PATCH] Avoid list extending in get_scope(). Refs #340 --- social_auth/backends/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social_auth/backends/__init__.py b/social_auth/backends/__init__.py index 1923ef8..959f398 100644 --- a/social_auth/backends/__init__.py +++ b/social_auth/backends/__init__.py @@ -723,7 +723,7 @@ class BaseOAuth2(BaseOAuth): """Return list with needed access scope""" scope = self.DEFAULT_SCOPE or [] if self.SCOPE_VAR_NAME: - scope += setting(self.SCOPE_VAR_NAME, []) + scope = scope + setting(self.SCOPE_VAR_NAME, []) return scope -- 2.39.5