def getnameinfo(sockaddr, flags):
 return get_hub().resolver.getnameinfo(sockaddr, flags)

def getnameinfo ( sockaddr , flags ) : return get_hub ( ) . resolver . getnameinfo ( sockaddr , flags )
getnameinfo -> get host and port for a sockaddr .