def _parse_ip(string, families=(socket.AF_INET, socket.AF_INET6)):
    for family in families:
        try:
            return socket.inet_ntop(family, socket.inet_pton(family, string))
        except (__HOLE__, socket.error):
            pass
    return None
dataset/ETHPy150Open abusesa/abusehelper/abusehelper/core/cymruwhois.py/_parse_ip