Files
serveur-d-authentification/venv/lib/python3.10/site-packages/idna/__pycache__/codec.cpython-310.pyc

62 lines
4.7 KiB
Plaintext
Raw Normal View History

o
<00>Q<EFBFBD>j<EFBFBD><00>@s<>ddlZddlmZmZddlmZmZmZmZm Z m
Z
Gdd<06>dej <0B>Z Gdd<08>dej <0C>Z Gd d
<EFBFBD>d
ej<0E>ZGd d <0C>d e ej<10>ZGd d<0E>de ej<11>Zdedeejfdd<12>Ze<00>e<14>dS)<13>N)<02>Any<6E>Optional<61>)<06> IDNAError<6F>_unicode_dots_re<72>alabel<65>decode<64>encode<64>ulabelc @sPeZdZdZd dededeeeffdd<07>Zd dededeeeffdd <09>Z d
S) <0C>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>strict<63>data<74>errors<72>returncC<00>0|dkr td|<02>d<03><03><01>|sdSt|<01>t|<01>fS)Nr <00>Unsupported error handling "<22>"<22><02>r)rr <00>len<65><03>selfr r<00>r<00>m/home/sorel/systeme_gestion_cerfig/serveur-d-authentification/venv/lib/python3.10/site-packages/idna/codec.pyr <00>
z Codec.encodecCr)Nr rr<00><02>r)rrrrrrrrrz Codec.decodeN)r )
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F>str<74>tuple<6C>bytes<65>intr rrrrrr s
$ r c
@s2eZdZdZdedededeeeffdd<07>Z dS) <09>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.
r r<00>finalrc
Cs<>|dkr td|<02>d<03><03><01>|sdSt<01>|<01>}d}|r,|ds#d}|d=n |s,|d=|r,d}g}d}|D]}|<06>t|<08><01>|rA|d 7}|t|<08>7}q2d<07>|<06>|} |t|<05>7}| |fS)
Nr rrrr<00><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.rr)rr<00>split<69>appendrr<00>join)
rr rr&<00>labels<6C> trailing_dot<6F>result<6C>size<7A>label<65> result_bytesrrr<00>_buffer_encode1s0
 z!IncrementalEncoder._buffer_encodeN)
rrrr r!<00>boolr"r#r$r2rrrrr%%s& r%c
@s2eZdZdZdedededeeeffdd<07>Z dS) <09>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.
r rr&rc
Cs<>|dkr td|<02>d<03><03><01>|sdSt|t<02>st|d<05>}t<03>|<01>}d}|r6|ds-d}|d=n |s6|d=|r6d}g}d }|D]}|<06>t|<08><01>|rK|d
7}|t|<08>7}q<d<08>|<06>|} |t|<05>7}| |fS) Nr rrr<00>asciirr'<00>.rr) r<00>
isinstancer!rr)r*r
rr+)
rr rr&r,r-r.r/r0<00>
result_strrrr<00>_buffer_decode\s4


 z!IncrementalDecoder._buffer_decodeN)
rrrr rr!r3r"r$r9rrrrr4Rs& r4c@<00> eZdZdS)<02> StreamWriterN<72>rrrrrrrr;<00>r;c@r:)<02> StreamReaderNr<rrrrr><00>r=r><00>namerc Cs,|dkrdStj|t<02>jt<02>jttttd<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)r?r r<00>incrementalencoder<65>incrementaldecoder<65> streamwriter<65> streamreader) <09>codecs<63> CodecInfor r rr%r4r;r>)r?rrr<00>search_function<6F>s <06>rG)rE<00>typingrr<00>corerrrrr r
r <00>BufferedIncrementalEncoderr%<00>BufferedIncrementalDecoderr4r;r>r!rFrG<00>registerrrrr<00><module>s --