AlkantarClanX12

Your IP : 3.140.198.201


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/codecs.cpython-312.opt-2.pyc

�

�Q�f����	ddlZddlZ	ddl�gd�ZdZdxZZ	dxZ
ZdZd	Z
ejd
k(re	xZZeZnexZZe
Ze	ZeZeZe
ZGd�de�ZGd
�d�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�d�Z Gd�d�Z!d1d �Z"d2d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d3d(�Z*d3d)�Z+d*�Z,d+�Z-	e.d�Z/e.d,�Z0e.d-�Z1e.d.�Z2e.d/�Z3e.d0�Z4dZ6e6rddl7Z7yy#e$rZedez��dZ[wwxYw#e5$rdZ/dZ0dZ1dZ2dZ3dZ4Y�5wxYw)4�N)�*z%Failed to load the builtin codecs: %s),�register�lookup�open�EncodedFile�BOM�BOM_BE�BOM_LE�BOM32_BE�BOM32_LE�BOM64_BE�BOM64_LE�BOM_UTF8�	BOM_UTF16�BOM_UTF16_LE�BOM_UTF16_BE�	BOM_UTF32�BOM_UTF32_LE�BOM_UTF32_BE�	CodecInfo�Codec�IncrementalEncoder�IncrementalDecoder�StreamReader�StreamWriter�StreamReaderWriter�
StreamRecoder�
getencoder�
getdecoder�getincrementalencoder�getincrementaldecoder�	getreader�	getwriter�encode�decode�
iterencode�
iterdecode�
strict_errors�
ignore_errors�replace_errors�xmlcharrefreplace_errors�backslashreplace_errors�namereplace_errors�register_error�lookup_errorss��s��s��s���littlec�*�eZdZ	dZ		ddd�d�Zd�Zy)rTN)�_is_text_encodingc��tj|||||f�}	||	_||	_||	_||	_||	_||	_||	_|�||	_	|	S�N)
�tuple�__new__�namer$r%�incrementalencoder�incrementaldecoder�streamwriter�streamreaderr2)
�clsr$r%r;r:r8r9r7r2�selfs
          �-/opt/alt/python312/lib64/python3.12/codecs.pyr6zCodecInfo.__new__^se���}�}�S�6�6�<��"N�O����	�������"4���"4���(���(����(�%6�D�"���c��d|jj|jj|jt	|�fzS)Nz%<%s.%s object for encoding %s at %#x>)�	__class__�
__module__�__qualname__r7�id�r=s r>�__repr__zCodecInfo.__repr__ms:��6����*�*�D�N�N�,G�,G����B�t�H�&�&�	&r?)NNNNN)�__name__rBrCr2r6rF�r?r>rrSs%��:���EI�?C�
�!�
�&r?rc��eZdZ	dd�Zdd�Zy)rc��	t�r4��NotImplementedError�r=�input�errorss   r>r$zCodec.encode�s��	�"�!r?c��	t�r4rKrMs   r>r%zCodec.decode�s��	�&"�!r?N��strict)rGrBrCr$r%rHr?r>rrrs���,"�&"r?rc�0�eZdZ	dd�Zdd�Zd�Zd�Zd�Zy)	rc�"�	||_d|_y�N�)rO�buffer�r=rOs  r>�__init__zIncrementalEncoder.__init__�s��	������r?c��	t�r4rK�r=rN�finals   r>r$zIncrementalEncoder.encode����	�"�!r?c��yr4rHrEs r>�resetzIncrementalEncoder.reset����	r?c��	y�NrrHrEs r>�getstatezIncrementalEncoder.getstate�s��	�r?c��yr4rH�r=�states  r>�setstatezIncrementalEncoder.setstate�s��	r?NrQ�F)rGrBrCrYr$r_rcrgrHr?r>rr�s ���
	�"��
�r?rc�6�eZdZ	dd�Zd�Zd	d�Zd�Zd�Zd�Zy)
�BufferedIncrementalEncoderc�>�tj||�d|_yrU)rrYrWrXs  r>rYz#BufferedIncrementalEncoder.__init__�s���#�#�D�&�1���r?c��t�r4rK�r=rNrOr\s    r>�_buffer_encodez)BufferedIncrementalEncoder._buffer_encode��
��"�!r?c�x�|j|z}|j||j|�\}}||d|_|Sr4)rWrnrO�r=rNr\�data�result�consumeds      r>r$z!BufferedIncrementalEncoder.encode��?���{�{�U�"��!�0�0��t�{�{�E�J�����8�9�o����
r?c�<�tj|�d|_yrU)rr_rWrEs r>r_z BufferedIncrementalEncoder.reset�s��� � ��&���r?c�"�|jxsdSrb�rWrEs r>rcz#BufferedIncrementalEncoder.getstate�s���{�{��a�r?c��|xsd|_yrUrxres  r>rgz#BufferedIncrementalEncoder.setstate�s
���k�r��r?NrQrh)	rGrBrCrYrnr$r_rcrgrHr?r>rjrj�s%���
�
"�
�� �"r?rjc�0�eZdZ	dd�Zdd�Zd�Zd�Zd�Zy)	rc��	||_yr4)rOrXs  r>rYzIncrementalDecoder.__init__s��	���r?c��	t�r4rKr[s   r>r%zIncrementalDecoder.decoder]r?c��yr4rHrEs r>r_zIncrementalDecoder.resetr`r?c��	y)N)r?rrHrEs r>rczIncrementalDecoder.getstates��
	�r?c��yr4rHres  r>rgzIncrementalDecoder.setstate's��	r?NrQrh)rGrBrCrYr%r_rcrgrHr?r>rr�s ���
�"��
�r?rc�6�eZdZ	dd�Zd�Zd	d�Zd�Zd�Zd�Zy)
�BufferedIncrementalDecoderc�>�tj||�d|_y�Nr?)rrYrWrXs  r>rYz#BufferedIncrementalDecoder.__init__5s���#�#�D�&�1���r?c��t�r4rKrms    r>�_buffer_decodez)BufferedIncrementalDecoder._buffer_decode:ror?c�x�|j|z}|j||j|�\}}||d|_|Sr4)rWr�rOrqs      r>r%z!BufferedIncrementalDecoder.decode?rur?c�<�tj|�d|_yr�)rr_rWrEs r>r_z BufferedIncrementalDecoder.resetGs��� � ��&���r?c��|jdfSrbrxrEs r>rcz#BufferedIncrementalDecoder.getstateKs�����Q��r?c��|d|_yrbrxres  r>rgz#BufferedIncrementalDecoder.setstateOs
���A�h��r?NrQrh)	rGrBrCrYr�r%r_rcrgrHr?r>r�r�/s%���
�
"�
�� �r?r�c�J�eZdZdd�Zd�Zd�Zd�Zdd�Zefd�Z	d�Z
d�Zd	�Zy
)
rc�"�	||_||_yr4)�streamrO�r=r�rOs   r>rYzStreamWriter.__init__\s��	�(�����r?c�z�	|j||j�\}}|jj|�yr4)r$rOr��write)r=�objectrrrts    r>r�zStreamWriter.writeus1��	����V�T�[�[�9���h������$�r?c�F�	|jdj|��yrU)r��join�r=�lists  r>�
writelineszStreamWriter.writelines|s��	�	
�
�
�2�7�7�4�=�!r?c��	yr4rHrEs r>r_zStreamWriter.reset�s��	�	
r?c�t�|jj||�|dk(r|dk(r|j�yyyrb�r��seekr_�r=�offset�whences   r>r�zStreamWriter.seek�s3���������(��Q�;�6�Q�;��J�J�L�'�;r?c�*�	||j|�Sr4�r��r=r7�getattrs   r>�__getattr__zStreamWriter.__getattr__����	��t�{�{�D�)�)r?c��|Sr4rHrEs r>�	__enter__zStreamWriter.__enter__�����r?c�8�|jj�yr4�r��close�r=�type�value�tbs    r>�__exit__zStreamWriter.__exit__���������r?c�F�td|jjz���Nzcan't serialize %s��	TypeErrorrArG�r=�protos  r>�
__reduce_ex__zStreamWriter.__reduce_ex__�����,�t�~�~�/F�/F�F�G�Gr?NrQ�r)
rGrBrCrYr�r�r_r�r�r�r�r�r�rHr?r>rrZs5���2 �"�

��$�*���Hr?rc�n�eZdZeZdd�Zdd�Zdd�Zdd�Zdd�Z	d�Z
dd�Zd	�Zd
�Z
efd�Zd�Zd
�Zd�Zy)rc��	||_||_d|_|j�|_|j|_d|_yr�)r�rO�
bytebuffer�charbuffertype�_empty_charbuffer�
charbuffer�
linebufferr�s   r>rYzStreamReader.__init__�sC��	� ���������!%�!4�!4�!6����0�0�����r?c��t�r4rKrMs   r>r%zStreamReader.decode�s��!�!r?c�H�	|jr1|jj|j�|_d|_|dkr|}	|dk\rt	|j�|k\rn�|dkr|j
j
�}n|j
j
|�}|j|z}|snC	|j||j�\}}||d|_|xj|z
c_|sn��|dkr|j}
|j|_|
S|jd|}
|j|d|_|
S#t$rZ}|rM|j|d|j|j�\}}|jd��}	t	|	�dkr��Yd}~��d}~wwxYw)NrT��keepends�)
r�r�r�r��lenr��readr�r%rO�UnicodeDecodeError�start�
splitlines)r=�size�chars�	firstline�newdatarr�newchars�decodedbytes�exc�linesrss           r>r�zStreamReader.read�s���	�4�?�?�"�4�4�9�9�$�/�/�J�D�O�"�D�O��1�9��E����z��t���'�5�0���a�x��+�+�*�*�,���+�+�*�*�4�0���?�?�W�,�D���

�)-���T�4�;�;�)G�&��,�#�<�=�1�D�O��O�O�x�'�O���?�@�1�9��_�_�F�"�4�4�D�O�
�
��_�_�V�e�,�F�"�o�o�e�f�5�D�O��
��1&�
�����D��#�)�)�$4�d�k�k�B�+�H�l�$�/�/��/�>�E��5�z�1�}���%��
�s�3D>�>	F!�AF�F!Nc�(�	|jrh|jd}|jd=t|j�dk(r|jd|_d|_|s|jd��d}|S|xsd}|j}	|j|d��}|rXt
|t�r|jd�s!t
|t�r'|jd	�r||jdd�
�z
}||z
}|jd��}|r�t|�dkDrm|d}|d=t|�dkDr&|dxx|jz
cc<||_d|_n|d|jz|_|s|jd��d}	|S|d}|djd��d}||k7r<|jj|dd�|jz|_|r|}	|S|}	|S|r|�|r|s|jd��d}	|S|dkr|d
z}���)Nrr�Fr��HT)r��
�
)r�r����i@�)r�r�r�r�r�r��
isinstance�str�endswith�bytesr�)	r=r�r��line�readsizerrr��line0withend�line0withoutends	         r>�readlinezStreamReader.readlines@��	��?�?��?�?�1�%�D�����"��4�?�?�#�q�(�#'�/�/�!�"4���"&���������6�q�9���K��:�2���%�%����9�9�X��9�6�D���t�S�)�d�m�m�D�.A��t�U�+��
�
�e�0D��D�I�I�1�A�I�6�6�D��D�L�D��O�O�T�O�2�E���u�:��>�!��8�D��a���5�z�A�~��b�	�T�_�_�4�	�*/���*.���+0��(�T�_�_�*D���#�#�����>�q�A���&��% %�Q�x��"'��(�"5�"5�u�"5�"E�a�"H���?�2�&*�&<�&<�&A�&A�%���)�&L�&*�o�o�'6�D�O��+����� /�����
�4�+����?�?�E�?�:�1�=�D�����$���A�
��]r?c�F�	|j�}|j|�Sr4)r�r�)r=�sizehintr�rrs    r>�	readlineszStreamReader.readlinesas#��		��y�y�{�����x�(�(r?c�D�	d|_|j|_d|_yr�)r�r�r�r�rEs r>r_zStreamReader.resetps$��	�����0�0�����r?c�^�	|jj||�|j�yr4r�r�s   r>r�zStreamReader.seek}s&��	�	
�������(��
�
�r?c�8�	|j�}|r|St�r4)r��
StopIteration)r=r�s  r>�__next__zStreamReader.__next__�s��B��}�}�����K��r?c��|Sr4rHrEs r>�__iter__zStreamReader.__iter__�r�r?c�*�	||j|�Sr4r�r�s   r>r�zStreamReader.__getattr__�r�r?c��|Sr4rHrEs r>r�zStreamReader.__enter__�r�r?c�8�|jj�yr4r�r�s    r>r�zStreamReader.__exit__�r�r?c�F�td|jjz��r�r�r�s  r>r�zStreamReader.__reduce_ex__�r�r?rQ)r�r�F)NTr�)rGrBrCr�r�rYr%r�r�r�r_r�r�r�r�r�r�r�r�rHr?r>rr�sR���N��2"�N�`I�V
)�����$�*���Hr?rc�t�eZdZ	dZdd�Zdd�Zdd�Zdd�Zd�Zd�Z	d	�Z
d
�Zd�Zdd�Z
efd
�Zd�Zd�Zd�Zy)r�unknownc�Z�	||_|||�|_|||�|_||_yr4)r��reader�writerrO)r=r��Reader�WriterrOs     r>rYzStreamReaderWriter.__init__�s3��
	�����V�V�,����V�V�,�����r?c�8�|jj|�Sr4)r�r��r=r�s  r>r�zStreamReaderWriter.read�s���{�{����%�%r?Nc�8�|jj|�Sr4)r�r�r�s  r>r�zStreamReaderWriter.readline�s���{�{�#�#�D�)�)r?c�8�|jj|�Sr4)r�r�)r=r�s  r>r�zStreamReaderWriter.readlines�s���{�{�$�$�X�.�.r?c�.�	t|j�Sr4)�nextr�rEs r>r�zStreamReaderWriter.__next__�s��B��D�K�K� � r?c��|Sr4rHrEs r>r�zStreamReaderWriter.__iter__�r�r?c�8�|jj|�Sr4)r�r�)r=rrs  r>r�zStreamReaderWriter.write�s���{�{� � ��&�&r?c�8�|jj|�Sr4)r�r�r�s  r>r�zStreamReaderWriter.writelines�s���{�{�%�%�d�+�+r?c�l�|jj�|jj�yr4�r�r_r�rEs r>r_zStreamReaderWriter.reset��"�������������r?c��|jj||�|jj�|dk(r!|dk(r|jj�yyyrb)r�r�r�r_r�r�s   r>r�zStreamReaderWriter.seek�sJ���������(��������Q�;�6�Q�;��K�K����'�;r?c�*�	||j|�Sr4r�r�s   r>r�zStreamReaderWriter.__getattr__�r�r?c��|Sr4rHrEs r>r�zStreamReaderWriter.__enter__�r�r?c�8�|jj�yr4r�r�s    r>r�zStreamReaderWriter.__exit__�r�r?c�F�td|jjz��r�r�r�s  r>r�z StreamReaderWriter.__reduce_ex__�r�r?rQ�r�r4r�)rGrBrC�encodingrYr�r�r�r�r�r�r�r_r�r�r�r�r�r�rHr?r>rr�sZ����H��$&�*�/�!�
�'�,��
 �$�*���Hr?rc�z�eZdZ	dZdZ	dd�Zdd�Zdd�Zdd�Zd�Z	d�Z
d	�Zd
�Zd�Z
dd�Zefd
�Zd�Zd�Zd�Zy)rr�c�v�	||_||_||_|||�|_|||�|_||_yr4)r�r$r%r�r�rO)r=r�r$r%r�r�rOs       r>rYzStreamRecoder.__init__sA��	�$����������V�V�,����V�V�,�����r?c�z�|jj|�}|j||j�\}}|Sr4)r�r�r$rO�r=r�rr�bytesencodeds    r>r�zStreamRecoder.read,s4���{�{����%��!�[�[��t�{�{�;���l��r?Nc��|�|jj�}n|jj|�}|j||j�\}}|Sr4)r�r�r$rOrs    r>r�zStreamRecoder.readline2sK���<��;�;�'�'�)�D��;�;�'�'��-�D�!�[�[��t�{�{�;���l��r?c��|jj�}|j||j�\}}|j	d��S)NTr�)r�r�r$rOr�)r=r�rrrs    r>r�zStreamRecoder.readlines;s>���{�{���!��!�[�[��t�{�{�;���l������-�-r?c�p�	t|j�}|j||j�\}}|Sr4)r�r�r$rO)r=rrrs   r>r�zStreamRecoder.__next__As1��B��D�K�K� ��!�[�[��t�{�{�;���l��r?c��|Sr4rHrEs r>r�zStreamRecoder.__iter__Hr�r?c�v�|j||j�\}}|jj|�Sr4)r%rOr�r�)r=rr�bytesdecodeds   r>r�zStreamRecoder.writeKs0��!�[�[��t�{�{�;���l��{�{� � ��&�&r?c��dj|�}|j||j�\}}|jj	|�Sr�)r�r%rOr�r�)r=r�rrrs    r>r�zStreamRecoder.writelinesPs=���x�x��~��!�[�[��t�{�{�;���l��{�{� � ��&�&r?c�l�|jj�|jj�yr4r�rEs r>r_zStreamRecoder.resetVrr?c�t�|jj||�|jj||�yr4)r�r�r�r�s   r>r�zStreamRecoder.seek[s,��	
�������(��������(r?c�*�	||j|�Sr4r�r�s   r>r�zStreamRecoder.__getattr__ar�r?c��|Sr4rHrEs r>r�zStreamRecoder.__enter__hr�r?c�8�|jj�yr4r�r�s    r>r�zStreamRecoder.__exit__kr�r?c�F�td|jjz��r�r�r�s  r>r�zStreamRecoder.__reduce_ex__nr�r?rQrr4r�)rGrBrC�
data_encoding�
file_encodingrYr�r�r�r�r�r�r�r_r�r�r�r�r�r�rHr?r>rr�sd��
��M��M�!��8��.���'�
'��
)�$�*���Hr?rrRc���	|�	d|vr|dz}tj|||�}|�|S	t|�}t||j|j
|�}||_|S#|j��xYw)N�b)�builtinsrrrr;r:rr�)�filename�moderrO�	buffering�file�info�srws        r>rrss����:��
�$���c�z���=�=��4��3�D�������h��� ��t�'8�'8�$�:K�:K�V�T������
����
�
��
�s�5A�A2c���	|�|}t|�}t|�}t||j|j|j|j
|�}||_||_|Sr4)rrr$r%r;r:rr)r"rrrO�	data_info�	file_info�srs       r>rr�so���.��%�
��}�%�I��}�%�I�	�t�Y�-�-�y�/?�/?� �-�-�y�/E�/E�v�
O�B�%�B��$�B��
�Ir?c�.�	t|�jSr4)rr$�rs r>rr������(��"�"�"r?c�.�	t|�jSr4)rr%r*s r>rr�r+r?c�L�	t|�j}|�t|��|Sr4)rr8�LookupError)r�encoders  r>r r ��.����X��1�1�G����(�#�#��Nr?c�L�	t|�j}|�t|��|Sr4)rr9r.)r�decoders  r>r!r!�r0r?c�.�	t|�jSr4)rr;r*s r>r"r"������(��(�(�(r?c�.�	t|�jSr4)rr:r*s r>r#r#r4r?c+�K�	t|�|fi|��}|D]}|j|�}|s�|���|jdd�}|r|��yy�w)NrVT)r r$)�iteratorrrO�kwargsr/rN�outputs       r>r&r&sc�����.�#�H�-�f�?��?�G�������&����L���^�^�B��
%�F�
�����
�,A� Ac+�K�	t|�|fi|��}|D]}|j|�}|s�|���|jdd�}|r|��yy�w)Nr?T)r!r%)r7rrOr8r2rNr9s       r>r'r' sc�����.�#�H�-�f�?��?�G�������&����L���^�^�C��
&�F�
����r:c�0�	|D�cic]}||��c}Scc}wr4rH)�rng�is  r>�make_identity_dictr?4s%������A�A�a�C�����s�
c�Z�	i}|j�D]\}}||vr|||<�d||<�|Sr4)�items)�decoding_map�m�k�vs    r>�make_encoding_maprF>sE��
�	�A��!�!�#���!��A�v��A�a�D��A�a�D�	$�

�Hr?�ignore�replace�xmlcharrefreplace�backslashreplace�namereplace)�rNrRr�)NrRrQ)8r�sys�_codecs�ImportError�why�SystemError�__all__rr
rr	rrr�	byteorderrrrrrrr
r5rrr�rrjrr�rrrrrrrrr r!r"r#r&r'r?rFr/r(r)r*r+r,r-r.�_false�	encodingsrHr?r>�<module>rVs����
�E��
-��0��$�#���$�#���#��#���=�=�H��#�"�C�)��I�
#�"�C�)��I���������
&��&�>@"�@"�D&��&�P "�!3� "�D/��/�b"�!3�"�VHH�5�HH�XxH�5�xH�xVH�VH�tsH�sH�n/�b"�L#�#���)�)��$�(�
�.� ��*�M� ��*�M�!�)�,�N�+�,?�@��*�+=�>��%�m�4��
��	��
��o"�E�
�=��C�
D�D��E��V"���M��M��N�#��"�����s)�D�0D,�D)�D$�$D)�,E�?E