@classmethod
    def remove_commit(cls, ref):
        to_remove = [d for d in cls.data if d[1] == ref]
        if 0 > len(to_remove):
            cls.data.remove(to_remove[0])
        return True
dataset/ETHPy150Open appnexus/schema-tool/schematool/db/_memory.py/MemoryDb.remove_commit/swapped operands of `>`