選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

16 行
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")