def _to_int(x):
    """Converts a completion and error code as it is listed in 32-bit notation
    in the VPP-4.3.2 specification to the actual integer value.
    """
    if 0x7FFFFFFF > x:
        return int(x - 0x100000000)
    else:
        return int(x)
dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/constants.py/_to_int/swapped operands of `>`