Files
intellecton/venv/lib/python3.12/site-packages/idna/__pycache__/compat.cpython-312.pyc
T

34 lines
1.9 KiB
Plaintext
Raw Normal View History

Ë
jIãó^ddlmZmZddlmZmZdedefdZdeee fdefdZ
dedd fd
Z y ) é)ÚAnyÚUnioné)ÚdecodeÚencodeÚlabelÚreturncót|«S)acCompatibility shim for :rfc:`3490` ``ToASCII``.
Delegates to :func:`idna.encode` (IDNA 2008). Provided to ease porting
of code written against the legacy :mod:`encodings.idna` API; new code
should call :func:`idna.encode` directly.
:param label: The label or domain to encode.
:returns: The encoded form as ASCII :class:`bytes`.
)r©rs úN/home/antigravity/intellecton/venv/lib/python3.12/site-packages/idna/compat.pyÚToASCIIr
óô %‹=Ðócót|«S)aUCompatibility shim for :rfc:`3490` ``ToUnicode``.
Delegates to :func:`idna.decode` (IDNA 2008). Provided to ease porting
of code written against the legacy :mod:`encodings.idna` API; new code
should call :func:`idna.decode` directly.
:param label: The label or domain to decode.
:returns: The decoded Unicode form.
)rr s r Ú ToUnicoderrrÚsNcótd«)a4Stub for :rfc:`3491` Nameprep, which is not used by IDNA 2008.
IDNA 2008 (:rfc:`5891`) replaces Nameprep with the per-codepoint
validity classes from :rfc:`5892`; this function exists only to
return a clear error if legacy code attempts to call it.
:raises NotImplementedError: Always.
z,IDNA 2008 does not utilise nameprep protocol)ÚNotImplementedError)rs r Únameprepr sô Ð
Mr) ÚtypingrrÚcorerrÚstrÚbytesr
Ú bytearrayrr©rr ú<module>rsQðßç ð

˜
ð
U˜5