Commits

Mike Bayer committed ea87e47

removed redundant check to _enable_transaction_accounting

Comments (0)

Files changed (1)

lib/sqlalchemy/orm/session.py

         for s in set(self._new).union(self.session._new):
             self.session._expunge_state(s)
 
-        if self.session._enable_transaction_accounting:
-            for s in self.session.identity_map.all_states():
-                _expire_state(s, None)
+        for s in self.session.identity_map.all_states():
+            _expire_state(s, None)
 
     def _remove_snapshot(self):
         assert self._is_transaction_boundary