def _resolveIPv6(ip, port):
 return socket.getaddrinfo(ip, port, 0, 0, 0, _NUMERIC_ONLY)[0][4]

def _resolveIPv6 ( ip , port ) : return socket . getaddrinfo ( ip , port , 0 , 0 , 0 , _NUMERIC_ONLY ) [ 0 ] [ 4 ]
resolve an ipv6 literal into an ipv6 address .