jpayne@7: from .core import * jpayne@7: from .codec import * jpayne@7: from typing import Any, Union jpayne@7: jpayne@7: def ToASCII(label: str) -> bytes: jpayne@7: return encode(label) jpayne@7: jpayne@7: def ToUnicode(label: Union[bytes, bytearray]) -> str: jpayne@7: return decode(label) jpayne@7: jpayne@7: def nameprep(s: Any) -> None: jpayne@7: raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') jpayne@7: