

@classmethod
def _session_rollback(cls, session, previous_transaction):
    if hasattr(session, '_depot_old'):
        del session._depot_old
    if hasattr(session, '_depot_new'):
        for entry in session._depot_new:
            (depot, fileid) = entry.split('/', 1)
            depot = DepotManager.get(depot)
            cls.delete(fileid)
        del session._depot_new

dataset/ETHPy150Open amol-/depot/depot/fields/sqlalchemy.py _SQLAMutationTracker._session_rollback/VarMisuse@76/107 `depot`->`cls`