def ipv6_to_str(ip):
 if isinstance(ip, numbers.Integral):
  return addrconv.ipv6.bin_to_text(type_desc.Int16.from_user(ip))
 else:
  return addrconv.ipv6.bin_to_text(ip)

def ipv6_to_str ( ip ) : if isinstance ( ip , numbers . Integral ) : return addrconv . ipv6 . bin_to_text ( type_desc . Int16 . from_user ( ip ) ) else : return addrconv . ipv6 . bin_to_text ( ip )
converts binary or int type representation to human readable ipv6 string .