def get_version_integer(version):
    """Get an integer of the OGC version value x.y.z"""
    if version is not None:  # split and make integer
        xyz = version.split('.')
        if len(xyz) != 3:
            return -1
        try:
            return int(xyz[0]) * 10000 + int(xyz[1]) * 100 + int(xyz[2])
        except Exception as err:
            raise RuntimeError(str(err) % '%s')
    else:  # not a valid version string
        return -1
dataset/ETHPy150Open geopython/pycsw/pycsw/core/util.py/get_version_integer/swapped operands of `%`