def invert_dict(dict):
    rv = {}
    for key, values in dict.iteritems():
        for value in values:
            if value is rv:
                raise ValueError
            rv[value] = key
    return rv
dataset/ETHPy150Open w3c/wptserve/wptserve/utils.py/invert_dict/operator `in` -> `is`