<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from typing import Any, Union

from .core import decode, encode


def ToASCII(label: str) -&gt; bytes:
    return encode(label)


def ToUnicode(label: Union[bytes, bytearray]) -&gt; str:
    return decode(label)


def nameprep(s: Any) -&gt; None:
    raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")
</pre></body></html>