From e9acc2418f93e296ac9d28e4c393eef789404ef7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABtan=20de=20Menten?= Date: Wed, 30 Sep 2009 12:11:14 +0000 Subject: [PATCH] removed obsolete code (closes #1559) --- lib/sqlalchemy/orm/scoping.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/sqlalchemy/orm/scoping.py b/lib/sqlalchemy/orm/scoping.py index 28eb63819e..f00b30849d 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') -- 2.47.2