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

60 lines
6.2 KiB
Plaintext
Raw Normal View History

<EFBFBD>
$n!j<><00><00>`<00>ddlZddlmZmZddlmZmZmZmZm Z m
Z
Gd<05>dej<00>Z Gd<07>dej<00>Z Gd <09>d
ej<00>ZGd <0B>d e ej <00>ZGd <0A>de ej"<00>Zdedeej&fd<11>Zej*e<14>y)<12>N)<02>Any<6E>Optional<61>)<06> IDNAError<6F>_unicode_dots_re<72>alabel<65>decode<64>encode<64>ulabelc <00>P<00>eZdZdZddededeeeffd<05>Zddededeeeffd<06>Z y) <09>CodecafStateless IDNA 2008 codec.
Implements the :class:`codecs.Codec` protocol so that the whole-domain
encoder (:func:`idna.encode`) and decoder (:func:`idna.decode`) are
accessible through the standard codec machinery as ``"idna2008"``.
Only the ``"strict"`` error handler is supported; any other handler
raises :exc:`~idna.IDNAError`.
<20>data<74>errors<72>returnc<00>\<00>|dk7rtd|<02>d<03><03><00>|syt|<01>t|<01>fS)N<>strict<63>Unsupported error handling "<22>"<22><02>r)rr
<00>len<65><03>selfrrs <20>L/home/jean/linux-transcriber/venv/lib/python3.12/site-packages/idna/codec.pyr
z Codec.encodes8<00><00> <11>X<EFBFBD> <1D><1B>:<3A>6<EFBFBD>(<28>!<21>D<>E<> E<><13><19><15>d<EFBFBD>|<7C>S<EFBFBD><14>Y<EFBFBD>&<26>&rc<00>\<00>|dk7rtd|<02>d<03><03><00>|syt|<01>t|<01>fS)Nrrr<00><02>r)rr rrs rr z Codec.decodes8<00><00> <11>X<EFBFBD> <1D><1B>:<3A>6<EFBFBD>(<28>!<21>D<>E<> E<><13><18><15>d<EFBFBD>|<7C>S<EFBFBD><14>Y<EFBFBD>&<26>&rN)r)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F>str<74>tuple<6C>bytes<65>intr
r <00>rrr r sL<00><00><08>'<27>3<EFBFBD>'<27><03>'<27>5<EFBFBD><15><03><1A>;L<>'<27>'<27>5<EFBFBD>'<27>#<23>'<27>U<EFBFBD>3<EFBFBD><03>8<EFBFBD>_<EFBFBD>'rr c
<00>2<00>eZdZdZdedededeeeffd<06>Z y)<08>IncrementalEncodera<72>Incremental IDNA 2008 encoder.
Buffers a partial trailing label across calls until either the next
label separator is seen or ``final=True``, so that streamed input is
encoded one whole label at a time. Any of the four Unicode label
separators (``U+002E``, ``U+3002``, ``U+FF0E``, ``U+FF61``) ends a
label; the result always uses ``U+002E`` as the separator.
Only the ``"strict"`` error handler is supported.
rr<00>finalrc<00>J<00>|dk7rtd|<02>d<03><03><00>|sytj|<01>}d}|r|dsd}|d=n |s|d=|rd}g}d}|D]1}|jt |<08><00>|r|d z }|t |<08>z }<07>3dj |<06>|z} |t |<05>z }| |fS)
Nrrrrr<00><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.rr)rr<00>split<69>appendrr<00>join)
rrrr)<00>labels<6C> trailing_dot<6F>result<6C>size<7A>label<65> result_bytess
r<00>_buffer_encodez!IncrementalEncoder._buffer_encode1s<><00><00> <11>X<EFBFBD> <1D><1B>:<3A>6<EFBFBD>(<28>!<21>D<>E<> E<><13><19>!<21>'<27>'<27><04>-<2D><06><1A> <0C> <11><19>"<22>:<3A>#<23> <0C><1A>2<EFBFBD>J<EFBFBD><1A><1A>2<EFBFBD>J<EFBFBD><19>#'<27>L<EFBFBD><13><06><10><04><1B> <1F>E<EFBFBD> <12>M<EFBFBD>M<EFBFBD>&<26><15>-<2D> (<28><13><14><01> <09><04> <10>C<EFBFBD><05>J<EFBFBD> <1E>D<EFBFBD>  <1F><1C>y<EFBFBD>y<EFBFBD><16>(<28><<3C>7<> <0C> <0C><03>L<EFBFBD>!<21>!<21><04><1B>T<EFBFBD>!<21>!rN)
rrr r!r"<00>boolr#r$r%r6r&rrr(r(%s2<00><00> <08>"<22>3<EFBFBD>"<22><03>"<22>D<EFBFBD>"<22>U<EFBFBD>5<EFBFBD>RU<52>:<3A>EV<45>"rr(c
<00>2<00>eZdZdZdedededeeeffd<06>Z y)<08>IncrementalDecoderaIncremental IDNA 2008 decoder.
Buffers a partial trailing label across calls until either the next
label separator is seen or ``final=True``, so that streamed input is
decoded one whole label at a time.
Only the ``"strict"`` error handler is supported.
rrr)rc<00><><00>|dk7rtd|<02>d<03><03><00>|syt|t<00>s t|d<05>}tj|<01>}d}|r|dsd}|d=n |s|d=|rd}g}d }|D]1}|j t |<08><00>|r|d
z }|t|<08>z }<07>3dj|<06>|z} |t|<05>z }| |fS) Nrrrr<00>asciirr+<00>.rr) r<00>
isinstancer"rr-r.r rr/)
rrrr)r0r1r2r3r4<00>
result_strs
r<00>_buffer_decodez!IncrementalDecoder._buffer_decode\s<><00><00> <11>X<EFBFBD> <1D><1B>:<3A>6<EFBFBD>(<28>!<21>D<>E<> E<><13><1A><19>$<24><03>$<24><16>t<EFBFBD>W<EFBFBD>%<25>D<EFBFBD>!<21>'<27>'<27><04>-<2D><06><19> <0C> <11><19>"<22>:<3A>"<22> <0C><1A>2<EFBFBD>J<EFBFBD><1A><1A>2<EFBFBD>J<EFBFBD><19>#&<26>L<EFBFBD><13><06><10><04><1B> <1F>E<EFBFBD> <12>M<EFBFBD>M<EFBFBD>&<26><15>-<2D> (<28><13><14><01> <09><04> <10>C<EFBFBD><05>J<EFBFBD> <1E>D<EFBFBD>  <1F> <19>X<EFBFBD>X<EFBFBD>f<EFBFBD>%<25> <0C>4<>
<EFBFBD> <0C><03>L<EFBFBD>!<21>!<21><04><1A>D<EFBFBD>!<21>!rN)
rrr r!rr"r7r#r%r?r&rrr9r9Rs1<00><00><08> "<22>3<EFBFBD> "<22><03> "<22>D<EFBFBD> "<22>U<EFBFBD>3<EFBFBD>PS<50>8<EFBFBD>_<EFBFBD> "rr9c<00> <00>eZdZy)<02> StreamWriterN<72>rrr r&rrrArA<00><00><00>rrAc<00> <00>eZdZy)<02> StreamReaderNrBr&rrrErE<00>rCrrE<00>namerc <00><><00>|dk7rytj|t<00>jt<00>jt
t tt<00><03>S)a<>Codec search function registered with :mod:`codecs`.
Returns a :class:`codecs.CodecInfo` for the ``"idna2008"`` codec name
so that ``str.encode("idna2008")`` and ``bytes.decode("idna2008")``
invoke the IDNA 2008 codec defined in this module.
:param name: The codec name being looked up.
:returns: A :class:`codecs.CodecInfo` instance if ``name`` is
``"idna2008"``, otherwise ``None``.
<20>idna2008N)rFr
r <00>incrementalencoder<65>incrementaldecoder<65> streamwriter<65> streamreader) <09>codecs<63> CodecInfor r
r r(r9rArE)rFs r<00>search_functionrO<00>sC<00><00> <0C>z<EFBFBD><19><13> <11> <1B> <1B> <11><14>w<EFBFBD>~<7E>~<7E><14>w<EFBFBD>~<7E>~<7E>-<2D>-<2D>!<21>!<21> <06>r)rM<00>typingrr<00>corerrrr r
r r <00>BufferedIncrementalEncoderr(<00>BufferedIncrementalDecoderr9rArEr"rNrO<00>registerr&rr<00><module>rUs<><00><01> <0A> <20>M<>M<>'<27>F<EFBFBD>L<EFBFBD>L<EFBFBD>'<27><*"<22><16>:<3A>:<3A>*"<22>Z*"<22><16>:<3A>:<3A>*"<22>Z <09>5<EFBFBD>&<26>-<2D>-<2D> <09> <09>5<EFBFBD>&<26>-<2D>-<2D> <09><06>#<23><06>(<28>6<EFBFBD>+;<3B>+;<3B>"<<3C><06>0<10><06><0F><0F><0F> r