def ntop(address):
 af = (((len(address) == 4) and socket.AF_INET) or socket.AF_INET6)
 return socket.inet_ntop(af, address)

def ntop ( address ) : af = ( ( ( len ( address ) == 4 ) and socket . AF_INET ) or socket . AF_INET6 ) return socket . inet_ntop ( af , address )
convert address to its string representation .