

def _clone(self, **kw):
    default_kw = {
        'independent': self._independent,
        'mode': self._mode,
        'connection': self._connection,
    }
    default_kw.update(kw)
    return _TransactionContextManager(root=self._root, **default_kw)

dataset/ETHPy150Open openstack/oslo.db/oslo_db/sqlalchemy/enginefacade.py _TransactionContextManager._clone/original