Lines Matching refs:idna_codec
550 def to_unicode(self, omit_final_dot=False, idna_codec=None): argument
576 if idna_codec is None:
577 idna_codec = IDNA_2003_Practical
578 return '.'.join([idna_codec.decode(x) for x in l])
804 def from_unicode(text, origin=root, idna_codec=None): argument
831 if idna_codec is None:
832 idna_codec = IDNA_2003
859 labels.append(idna_codec.encode(label))
870 labels.append(idna_codec.encode(label))
884 def from_text(text, origin=root, idna_codec=None): argument
902 return from_unicode(text, origin, idna_codec)