%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/idna/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/idna/__pycache__/codec.cpython-312.pyc

�

��=fb
���ddlmZmZmZmZmZddlZddlZddlm	Z	m
Z
mZejd�Z
Gd�dej�ZGd�d	ej�ZGd
�dej"�ZGd�d
eej&�ZGd�deej(�Zdedeej,fd�Zej0e�y)�)�encode�decode�alabel�ulabel�	IDNAError�N)�Any�Tuple�Optionalu[.。.。]c	�L�eZdZddededeeeffd�Zddededeeeffd�Zy)�Codec�data�errors�returnc�r�|dk7rtdj|���|syt|�t|�fS)N�strict�Unsupported error handling "{}"��r)r�formatr�len��selfrrs   �,/usr/lib/python3/dist-packages/idna/codec.pyrzCodec.encode
s:���X���?�F�F�v�N�O�O����d�|�S��Y�&�&rc�r�|dk7rtdj|���|syt|�t|�fS)Nrr��r)rrrrrs   rrzCodec.decodes:���X���?�F�F�v�N�O�O����d�|�S��Y�&�&rN)r)	�__name__�
__module__�__qualname__�strr
�bytes�intrr�rrr
r
sG��'�3�'��'�5����;L�'�'�5�'�#�'�U�3��8�_�'rr
c
�.�eZdZdedededeeeffd�Zy)�IncrementalEncoderrr�finalrc�`�|dk7rtdj|���|sytj|�}d}|r|dsd}|d=n	|s|d=|rd}g}d}|D]1}|j	t|��|r|dz
}|t
|�z
}�3dj|�|z}	|t
|�z
}|	|fS)	Nrrrr����.rr)rr�_unicode_dots_re�split�appendrr�join)
rrrr'�labels�trailing_dot�result�size�label�result_bytess
          r�_buffer_encodez!IncrementalEncoder._buffer_encodes����X���?�F�F�v�N�O�O���!�'�'��-������"�:�#���2�J���2�J��#'�L������	�E��M�M�&��-�(����	���C��J��D�		��y�y��(�<�7����L�!�!���T�!�!rN)	rrr r!�boolr
r"r#r5r$rrr&r&s-��"�3�"��"�D�"�U�5�RU�:�EV�"rr&c
�.�eZdZdedededeeeffd�Zy)�IncrementalDecoderrrr'rc��|dk7rtdj|���|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)
Nrrr�asciirr)�.rr)
rr�
isinstancer!r+r,r-rrr.)
rrrr'r/r0r1r2r3�
result_strs
          r�_buffer_decodez!IncrementalDecoder._buffer_decode>s����X���?�F�F�v�N�O�O����$��$��t�W�%�D�!�'�'��-������"�:�"���2�J���2�J��#&�L������	�E��M�M�&��-�(����	���C��J��D�		��X�X�f�%��4�
���L�!�!���D�!�!rN)	rrr r	r!r6r
r#r>r$rrr8r8=s,�� "�3� "�� "�D� "�U�3�PS�8�_� "rr8c��eZdZy)�StreamWriterN�rrr r$rrr@r@a���rr@c��eZdZy)�StreamReaderNrAr$rrrDrDerBrrD�namerc	��|dk7rytj|t�jt�jt
ttt��S)N�idna2008)rErr�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInfor
rrr&r8r@rD)rEs r�search_functionrNisA���z������
��w�~�~��w�~�~�-�-�!�!��r)�corerrrrrrL�re�typingr	r
r�compiler+r
�BufferedIncrementalEncoderr&�BufferedIncrementalDecoderr8r@rDr!rMrN�registerr$rr�<module>rVs���;�;�
�	�'�'��2�:�:�:�;��'�F�L�L�'�("��:�:�"�B!"��:�:�!"�H	�5�&�-�-�	�	�5�&�-�-�	��#��(�6�+;�+;�"<������� r

Zerion Mini Shell 1.0