Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

16 rindas
316 B

  1. from typing import Any, Union
  2. from .core import decode, encode
  3. def ToASCII(label: str) -> bytes:
  4. return encode(label)
  5. def ToUnicode(label: Union[bytes, bytearray]) -> str:
  6. return decode(label)
  7. def nameprep(s: Any) -> None:
  8. raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")