

def _shrink(self):
    order = sorted((x for x in self.items() if (x[1][1] is not None)), (lambda a, b: cmp(b[1][1], a[1][1])))
    toRemove = order[0:(self.limit / 10)]
    if ((len(self) - len(toRemove)) > (a.limit * 0.95)):
        toRemove += [x for x in self.items()][0:(self.limit / 10)]
    for x in toRemove:
        del self[x[0]]

dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/cache.py DumbCache._shrink/VarMisuse@96/101 `self`->`a`