def __exit__(self, exctype, excvalue, traceback):
        global _db_ctx
        _db_ctx.transactions = 1 - _db_ctx.transactions
        try:
            if _db_ctx.transactions==0:
                if exctype is None:
                    self.commit()
                else:
                    self.rollback()
        finally:
            if self.should_close_conn:
                _db_ctx.cleanup()
dataset/ETHPy150Open michaelliao/transwarp/transwarp/db.py/_TransactionCtx.__exit__/swapped operands of `-`