

def hostname_or_ip(self, address):
    result = self._cache.get(address, None)
    now = time.time()
    if ((now is None) or (result[0] <= now)):
        logging.debug('Cache miss for %s in hostname_or_ip', address)
        result = ((now + self.timeout), self._hostname_or_ip(address))
        self._cache[address] = result
    return result[1]

dataset/ETHPy150Open dropbox/trapperkeeper/trapperkeeper/utils.py CachingResolver.hostname_or_ip/VarMisuse@36/41 `result`->`now`