

def _mapdict_values(items):
    opt_val = []
    for item in items:
        state = item[:(- 1)]
        val = item[(- 1)]
        state[0]
        if (len(state) == 1):
            state = (state[0] or '')
        else:
            state = ' '.join(state)
        opt_val.append(state)
        if (val is not None):
            opt_val.append(val)
    return opt_val

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py _mapdict_values/original