diff options
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/orm/scoping.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/scoping.py b/lib/sqlalchemy/orm/scoping.py index aebcfcdfe..caa46670b 100644 --- a/lib/sqlalchemy/orm/scoping.py +++ b/lib/sqlalchemy/orm/scoping.py @@ -51,7 +51,7 @@ class ScopedSession(object): from sqlalchemy.orm import mapper validate = kwargs.pop('validate', False) - extension = to_list(kwargs.setdefault('extension', [])) + kwargs['extension'] = extension = to_list(kwargs.get('extension', [])) if validate: extension.append(self.extension.validating()) else: |