

def _hostname_or_ip(self, address):
    try:
        return socket.gethostbyaddr(address)[0]
    except socket.error:
        return address

dataset/ETHPy150Open dropbox/trapperkeeper/trapperkeeper/utils.py CachingResolver._hostname_or_ip/original