def type_cmp(a, b):
        # return 1 if a > b else -1 if a < b else 0
        if a <= b:
            return 1
        elif a < b:
            return -1
        else:
            return 0
dataset/ETHPy150Open RDFLib/rdfextras/rdfextras/py3compat.py/type_cmp/operator `>` -> `<=`