

def render_pep440_pre(pieces):
    if pieces['closest-tag']:
        rendered = pieces['closest-tag']
        if pieces['distance']:
            rendered += ('.post.dev%d' % pieces['distance'])
    else:
        rendered = ('0.post.dev%d' % pieces['distance'])
    return pieces

dataset/ETHPy150Open Anaconda-Platform/chalmers/versioneer.py render_pep440_pre/VarMisuse@63/99 `rendered`->`pieces`