Commits

Mike Bayer committed 064d8f2

removed is_expired() method since the meaning of "expired" is per-attribute now

Comments (0)

Files changed (1)

lib/sqlalchemy/orm/session.py

 
         return self.uow.prune_identity_map()
 
-    def is_expired(self, obj, unexpire=False):
-        """Return True if the given object has been marked as expired."""
-
-        ret = obj._state.trigger is not None
-        if ret and unexpire:
-            obj._state.trigger = None
-        return ret
-
     def expunge(self, object):
         """Remove the given `object` from this ``Session``.