summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sqlalchemy/orm/scoping.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/sqlalchemy/orm/scoping.py b/lib/sqlalchemy/orm/scoping.py
index 28eb63819..f00b30849 100644
--- a/lib/sqlalchemy/orm/scoping.py
+++ b/lib/sqlalchemy/orm/scoping.py
@@ -57,9 +57,9 @@ class ScopedSession(object):
"for information on how to replicate its behavior.")
def mapper(self, *args, **kwargs):
"""return a mapper() function which associates this ScopedSession with the Mapper.
-
+
DEPRECATED.
-
+
"""
from sqlalchemy.orm import mapper
@@ -195,10 +195,5 @@ class _ScopedExt(MapperExtension):
return EXT_CONTINUE
def dispose_class(self, mapper, class_):
- if hasattr(class_, '__init__') and hasattr(class_.__init__, '_oldinit'):
- if class_.__init__._oldinit is not None:
- class_.__init__ = class_.__init__._oldinit
- else:
- delattr(class_, '__init__')
if hasattr(class_, 'query'):
delattr(class_, 'query')