def compare_versions(v1, v2):

    def normalize(v):
        return tuple(map(int, re.sub(r'(\.0+)*$', '', v).split('.')))

    return normalize(v1) > normalize(v2)
Compare two version strings.
dataset/ETHPy150Open veegee/amqpy/amqpy/support/monotonic.py/compare_versions