def _version_info_from_version(version):
    m = _version_re.match(version)
    if not m:
        raise Error("could not convert '%s' version to version info" % version)
    version_info = []
    for g in m.groups():
        if g is None:
            break
        try:
            version_info.append(int(g))
        except __HOLE__:
            version_info.append(g)
    return tuple(version_info)
dataset/ETHPy150Open an0/Letterpress/code/markdown2/tools/cutarelease.py/_version_info_from_version