

def parse_version(*args):
    '\n    Returns a sortable version\n\n    Arguments:\n    args -- a string, tuple, or list of arguments to be joined with "."\'s\n    '
    v = None
    if (len(args) == 1):
        a = args[0]
        if isinstance(a, tuple):
            v = '.'.join((str(x) for x in a))
        else:
            v = str(a)
    else:
        v = '.'.join((str(a) for a in args))
    if v.startswith('v'):
        v = v[1:]
    try:
        return pkg_resources.SetuptoolsVersion(v)
    except AttributeError:
        return pkg_resources.parse_version(v)

dataset/ETHPy150Open NVIDIA/DIGITS/digits/utils/__init__.py parse_version/original