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

60 lines
6.2 KiB
Plaintext
Raw Normal View History

Ë
KÀj°ãó`—ddlZddlmZmZddlmZmZmZmZm Z m
Z
Gd„dej«Z Gd„dej«Z
Gd „d
ej«ZGd „d e ej «ZGd
„de ej"«Zdedeej&fd„Zej*e«y)éN)ÚAnyÚOptionalé)Ú IDNAErrorÚ_unicode_dots_reÚalabelÚdecodeÚencodeÚulabelc óP—eZdZdZddededeeeffd„Zddededeeeffd„Z y) Ú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`.
ÚdataÚerrorsÚreturncó\—|dk7rtd|›d�«‚|syt|«t|«fS)NÚstrictúUnsupported error handling "ú"©ór)rr
Úlen©Úselfrrs úM/home/antigravity/intellecton/venv/lib/python3.12/site-packages/idna/codec.pyr
z Codec.encodes8€Ø �XÒ ÜÐ:¸6¸(À!ÐDÓEÐ EáØä�d‹|œS ›YÐ&Ð&rcó\—|dk7rtd|›d�«‚|syt|«t|«fS)Nrrr©Úr)rr rrs rr z Codec.decodes8€Ø �XÒ ÜÐ:¸6¸(À!ÐDÓEÐ EáØä�d‹|œS ›YÐ&Ð&rN)r)
Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚstrÚtupleÚbytesÚintr
r ©rrr
r
sL„ññ'˜3ð'¨ð'¸5ÀÈÀÑ;Ló'ñ'˜5ð'¨#ð'¸UÀ3ÈÀ8¹_ô'rr
c
ó2—eZdZdZdedededeeeffd„Z y)ÚIncrementalEncodera·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ÚfinalrcóJ—|dk7rtd|›d�«‚|sytj|«}d}|r|dsd}|d=n |s|d=|rd}g}d}|D]1}|jt |««|r|d z
}|t |«z
}Œ3dj
|«|z} |t |«z
}| |fS)
Nrrrrréÿÿÿÿó.rr)rrÚsplitÚappendrrÚjoin)
rrrr)ÚlabelsÚ trailing_dotÚresultÚsizeÚlabelÚ result_bytess
rÚ_buffer_encodez!IncrementalEncoder._buffer_encode1sÔ€Ø �XÒ ÜÐ:¸6¸(À!ÐDÓEÐ EáØä!×'Ñ'¨Ó-ˆØˆ ٠ؘ"’:Ø#� ؘ2‘JÙà˜2�JÙØ#'�LàˆØˆØò ˆEØ �M‰Mœ& ›-Ô (ÙØ˜‘ �Ø ”C˜“JÑ ‰Dð  ð—y‘y Ó(¨<Ñ7ˆ Ø ”�LÓ!Ñ!ˆØ˜TÐ!Ð!rN)
rrr r!r"Úboolr#r$r%r6r&rrr(r(%s2„ñ ð" 3ð"°ð"¸Dð"ÀUÈ5ÐRUÈ:ÑEVô"rr(c
ó2—eZdZdZdedededeeeffd„Z y)Ú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ó‚—|dk7rtd|›d�«‚|syt|t«s t|d«}tj|«}d}|r|dsd}|d=n |s|d=|rd}g}d }|D]1}|j t
|««|r|d
z
}|t|«z
}Œ3dj|«|z} |t|«z
}| |fS) NrrrrÚasciirr+ú.rr) rÚ
isinstancer"rr-r.r rr/)
rrrr)r0r1r2r3r4Ú
result_strs
rÚ_buffer_decodez!IncrementalDecoder._buffer_decode\sê€Ø �XÒ ÜÐ:¸6¸(À!ÐDÓEÐ EáØä˜$¤Ô$Ü�t˜WÓ%ˆDä!×'Ñ'¨Ó-ˆØˆ ٠ؘ"’:Ø"� ؘ2‘JÙà˜2�JÙØ#&�LàˆØˆØò ˆEØ �M‰Mœ& ›-Ô (ÙØ˜‘ �Ø ”C˜“JÑ ‰Dð  ð —X‘X˜fÓ%¨ Ñ4ˆ
Ø ”�LÓ!Ñ!ˆØ˜DÐ!Ð!rN)
rrr r!rr"r7r#r%r?r&rrr9r9Rs1„ñð " 3ð "°ð "¸Dð "ÀUÈ3ÐPSÈ8Á_ô "rr9có —eZdZy)Ú StreamWriterN©rrr r&rrrArAó„ØrrAcó —eZdZy)Ú StreamReaderNrBr&rrrErEƒrCrrEÚnamerc ó®—|dk7rytj|t«jt«jt