def is_ipv4(ip):
    try:
        socket.inet_aton(ip)
    except (__HOLE__, socket.error):
        return False
    return True
dataset/ETHPy150Open abusesa/abusehelper/abusehelper/bots/experts/geoipexpert.py/is_ipv4