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

34 lines
1.9 KiB
Plaintext
Raw Normal View History

<EFBFBD>
$n!jI<00><00>^<00>ddlmZmZddlmZmZdedefd<06>Zdeee fdefd<07>Z
dedd fd
<EFBFBD>Z y ) <0B>)<02>Any<6E>Union<6F>)<02>decode<64>encode<64>label<65>returnc<00><00>t|<00>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<00>rs <20>M/home/jean/linux-transcriber/venv/lib/python3.12/site-packages/idna/compat.py<70>ToASCIIr <00><00><00> <12>%<25>=<3D><18>c<00><00>t|<00>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 <00> ToUnicoderrr<00>sNc<00><00>td<01><00>)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)<01>NotImplementedError)rs r <00>nameprepr s<00><00> <1E>L<>
M<EFBFBD>Mr) <0C>typingrr<00>corerr<00>str<74>bytesr <00> bytearrayrr<00>rr <00><module>rsQ<00><01><1D> <20>
<19>3<EFBFBD>
<19>5<EFBFBD>
<19>
<19>U<EFBFBD>5<EFBFBD>)<29>+<2B>,<2C>
<19><13>
<19> N<01><03> N<01><04> Nr