(self, ip)
return ip,asn,desc
overloaded version to provide a Whois resolution on the
        embedded IPv4 address if the address is 6to4 or Teredo. 
        Otherwise, the native IPv6 address is passed.
overloaded version to provide a Whois resolution on the
        embedded IPv4 address if the address is 6to4 or Teredo. 
        Otherwise, the native IPv6 address is passed.
overloaded version to provide a Whois resolution on the embedded IPv4 address if the address is 6to4 or Teredo . Otherwise the native IPv6 address is passed .
def _resolve_one(self, ip):
        """
        overloaded version to provide a Whois resolution on the
        embedded IPv4 address if the address is 6to4 or Teredo. 
        Otherwise, the native IPv6 address is passed.
        """

        if in6_isaddr6to4(ip): # for 6to4, use embedded @
            tmp = inet_pton(socket.AF_INET6, ip)
            addr = inet_ntop(socket.AF_INET, tmp[2:6])
        elif in6_isaddrTeredo(ip): # for Teredo, use mapped address
            addr = teredoAddrExtractInfo(ip)[2]
        else:
            addr = ip
        
        _, asn, desc = AS_resolver_riswhois._resolve_one(self, addr)

        return ip,asn,desc
def _resolve_one ( self , ip ) : if in6_isaddr6to4 ( ip ) : # for 6to4, use embedded @ tmp = inet_pton ( socket . AF_INET6 , ip ) addr = inet_ntop ( socket . AF_INET , tmp [ 2 : 6 ] ) elif in6_isaddrTeredo ( ip ) : # for Teredo, use mapped address addr = teredoAddrExtractInfo ( ip ) [ 2 ] else : addr = ip _ , asn , desc = AS_resolver_riswhois . _resolve_one ( self , addr ) return ip , asn , desc