]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
removed obsolete code (closes #1559)
authorGaëtan de Menten <gdementen@gmail.com>
Wed, 30 Sep 2009 12:11:14 +0000 (12:11 +0000)
committerGaëtan de Menten <gdementen@gmail.com>
Wed, 30 Sep 2009 12:11:14 +0000 (12:11 +0000)
lib/sqlalchemy/orm/scoping.py

index 28eb63819ec4ba5a52cb754c869f844383116415..f00b30849d0a7bce96ee440e539265d781af4e92 100644 (file)
@@ -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')