From: Matías Aguirre Date: Sun, 6 May 2012 00:23:39 +0000 (-0300) Subject: Avoid list extending in get_scope(). Refs #340 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=87c832043473a6fdadd81d14095c68678fdd9713;p=django-social-auth.git Avoid list extending in get_scope(). Refs #340 --- 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