You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 rivejä
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")