def formatKey(key):
    if type(key) == type([]):
        return  ''.join([formatKey(k) for k in key])
    for subre, repl in FORMAT_SUBS:
        key = subre.sub(repl, key)
    return key
dataset/ETHPy150Open openstack/gertty/gertty/keymap.py/formatKey/original