From: Gaƫtan de Menten Date: Wed, 30 Sep 2009 12:11:14 +0000 (+0000) Subject: removed obsolete code (closes #1559) X-Git-Tag: rel_0_6beta1~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9acc2418f93e296ac9d28e4c393eef789404ef7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git removed obsolete code (closes #1559) --- 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')