def part_string(part, i):
    if part == 'dev':
        timestamp = get_git_changeset()
        if timestamp:
            s = 'dev%s' % timestamp
        else:
            s = 'dev'
        if i > 0:
            s = '.' + s
    elif isinstance(part, tuple):
        s = ''.join(str(p) for p in part)
    else:
        s = str(part)
        if i > 0:
            s = '.' + s
    return s
Convert a version number part into a string for concatentation.
dataset/ETHPy150Open pybee/duvet/duvet/__init__.py/part_string