def _idnaText(octets):
 try:
  import idna
 except ImportError:
  return octets.decode('idna')
 else:
  return idna.decode(octets)

def _idnaText ( octets ) : try : import idna except ImportError : return octets . decode ( 'idna' ) else : return idna . decode ( octets )
convert some idna-encoded octets into some human-readable text .