def __setstate__(self, state):
        self.__dict__ = state

        now = time.time()
        for (k, (when, (ans, add, ns))) in self.cache.items():
            diff = when - now
            for rec in ans + add + ns:
                if rec.ttl < diff:
                    del self.cache[k]
                    break
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/names/cache.py/CacheResolver.__setstate__/swapped operands of `-`