

def invert_dict(dict):
    rv = {
        
    }
    for (key, values) in dict.iteritems():
        for value in values:
            if (value in rv):
                raise ValueError
            rv[value] = key
    return rv

dataset/ETHPy150Open w3c/wptserve/wptserve/utils.py invert_dict/original