

def dropValue(self, val):
    keys = self.keysFor(val)
    for k in list(keys):
        self.keyVal[k].discard(val)
        if (not self.keyVal[k]):
            del self.keyVal[k]
        self.valKeys[val].discard(k)
        if (not self.valKeys[val]):
            del self.valKeys[val]

dataset/ETHPy150Open ufora/ufora/ufora/util/TwoWaySetMap.py TwoWaySetMap.dropValue/original