Your IP : 18.222.98.91


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/codecs.cpython-310.opt-2.pyc

o

6��fj��
@sB	ddlZddlZzddlTWney!Zzede��dZ[wwgd�ZdZdZZ	dZ
ZdZd	Z
ejd
kr@e	ZZeZneZZe
Ze	ZeZeZe
ZGdd�de�ZGd
d�d�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�d�Z Gdd�d�Z!dBd"d#�Z"dCd$d%�Z#d&d'�Z$d(d)�Z%d*d+�Z&d,d-�Z'd.d/�Z(d0d1�Z)dDd2d3�Z*dDd4d5�Z+d6d7�Z,d8d9�Z-ze.d �Z/e.d:�Z0e.d;�Z1e.d<�Z2e.d=�Z3e.d>�Z4Wne5y�dZ/dZ0dZ1dZ2dZ3dZ4YnwdZ6e6�rddl7Z7e8d?k�re#ej9d@dA�e_9e#ej:dAd@�e_:dSdS)E�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@s.eZdZ	dZ		ddd�dd�Zdd�ZdS)	rTN)�_is_text_encodingc
CsPt�|||||f�}	||	_||	_||	_||	_||	_||	_||	_|dur&||	_	|	S�N)
�tuple�__new__�namer#r$�incrementalencoder�incrementaldecoder�streamwriter�streamreaderr0)
�clsr#r$r8r7r5r6r4r0�self�r;�-/opt/alt/python310/lib64/python3.10/codecs.pyr3^szCodecInfo.__new__cCsd|jj|jj|jt|�fS)Nz%<%s.%s object for encoding %s at %#x>)�	__class__�
__module__�__qualname__r4�id�r:r;r;r<�__repr__ms

��zCodecInfo.__repr__)NNNNN)�__name__r>r?r0r3rBr;r;r;r<rSs��rc@s"eZdZ	ddd�Zddd�ZdS)r�strictcC�	t�r1��NotImplementedError�r:�input�errorsr;r;r<r#�szCodec.encodecCrEr1rFrHr;r;r<r$�szCodec.decodeN�rD)rCr>r?r#r$r;r;r;r<rrs
rc@�:eZdZ	ddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)rrDcCs	||_d|_dS�N�)rJ�buffer�r:rJr;r;r<�__init__�s
zIncrementalEncoder.__init__FcCrEr1rF�r:rI�finalr;r;r<r#��zIncrementalEncoder.encodecC�dSr1r;rAr;r;r<�reset��zIncrementalEncoder.resetcC�	dS�Nrr;rAr;r;r<�getstate�rTzIncrementalEncoder.getstatecCrUr1r;�r:�stater;r;r<�setstate�rWzIncrementalEncoder.setstateNrK�F)rCr>r?rQr#rVrZr]r;r;r;r<r�s

rc@�BeZdZ	ddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�ZdS)�BufferedIncrementalEncoderrDcC�t�||�d|_dSrM)rrQrOrPr;r;r<rQ��
z#BufferedIncrementalEncoder.__init__cC�t�r1rF�r:rIrJrSr;r;r<�_buffer_encode��z)BufferedIncrementalEncoder._buffer_encodeFcC�0|j|}|�||j|�\}}||d�|_|Sr1)rOrerJ�r:rIrS�data�result�consumedr;r;r<r#��
z!BufferedIncrementalEncoder.encodecC�t�|�d|_dSrM)rrVrOrAr;r;r<rV��

z BufferedIncrementalEncoder.resetcCs
|jpdSrY�rOrAr;r;r<rZ�s
z#BufferedIncrementalEncoder.getstatecCs|pd|_dSrMror[r;r;r<r]��z#BufferedIncrementalEncoder.setstateNrKr^)	rCr>r?rQrer#rVrZr]r;r;r;r<r`�s

r`c@rL)rrDcCs	||_dSr1)rJrPr;r;r<rQs
zIncrementalDecoder.__init__FcCrEr1rFrRr;r;r<r$rTzIncrementalDecoder.decodecCrUr1r;rAr;r;r<rVrWzIncrementalDecoder.resetcCrX)N)�rr;rAr;r;r<rZszIncrementalDecoder.getstatecCrUr1r;r[r;r;r<r]'rWzIncrementalDecoder.setstateNrKr^)rCr>r?rQr$rVrZr]r;r;r;r<r�s


rc@r_)�BufferedIncrementalDecoderrDcCra�Nrq)rrQrOrPr;r;r<rQ5rbz#BufferedIncrementalDecoder.__init__cCrcr1rFrdr;r;r<�_buffer_decode:rfz)BufferedIncrementalDecoder._buffer_decodeFcCrgr1)rOrtrJrhr;r;r<r$?rlz!BufferedIncrementalDecoder.decodecCrmrs)rrVrOrAr;r;r<rVGrnz BufferedIncrementalDecoder.resetcCs
|jdfSrYrorAr;r;r<rZKs
z#BufferedIncrementalDecoder.getstatecCs|d|_dSrYror[r;r;r<r]Osz#BufferedIncrementalDecoder.setstateNrKr^)	rCr>r?rQrtr$rVrZr]r;r;r;r<rr/s

rrc@sTeZdZddd�Zdd�Zdd�Zdd	�Zddd�Zefd
d�Z	dd�Z
dd�ZdS)rrDcCs	||_||_dSr1)�streamrJ�r:rurJr;r;r<rQ\s
zStreamWriter.__init__cCs$	|�||j�\}}|j�|�dSr1)r#rJru�write)r:�objectrirkr;r;r<rwuszStreamWriter.writecCs	|�d�|��dSrM)rw�join�r:�listr;r;r<�
writelines|szStreamWriter.writelinescCs	dSr1r;rAr;r;r<rV�szStreamWriter.resetrcCs2|j�||�|dkr|dkr|��dSdSdSrY�ru�seekrV�r:�offset�whencer;r;r<r~�s�zStreamWriter.seekcC�	||j|�Sr1�ru�r:r4�getattrr;r;r<�__getattr__��zStreamWriter.__getattr__cC�|Sr1r;rAr;r;r<�	__enter__�rWzStreamWriter.__enter__cC�|j��dSr1�ru�close�r:�type�value�tbr;r;r<�__exit__�rpzStreamWriter.__exit__NrK�r)rCr>r?rQrwr|rVr~r�r�r�r�r;r;r;r<rZs


�rc@s�eZdZeZddd�Zddd�Zd dd	�Zd!dd
�Zd!dd�Z	dd�Z
d"dd�Zdd�Zdd�Z
efdd�Zdd�Zdd�Zd
S)#rrDcCs0	||_||_d|_|��|_|j|_d|_dSrs)rurJ�
bytebuffer�charbuffertype�_empty_charbuffer�
charbuffer�
linebufferrvr;r;r<rQ�s

zStreamReader.__init__cCrcr1rFrHr;r;r<r$�rWzStreamReader.decode���Fc
CsN	|jr|j�|j�|_d|_|dkr|}	|dkr"t|j�|kr"ng|dkr,|j��}n|j�|�}|j|}|s:nOz|�||j	�\}}Wn1t
yv}z%|rk|�|d|j�|j	�\}}|jdd�}	t|	�dkrj�n�WYd}~nd}~ww||d�|_|j|7_|s�nq|dkr�|j}
|j|_|
S|jd|�}
|j|d�|_|
S)NrT��keepends�)
r�r�ryr��lenru�readr�r$rJ�UnicodeDecodeError�start�
splitlines)r:�size�chars�	firstline�newdatari�newchars�decodedbytes�exc�linesrjr;r;r<r��sT
�����
� �zStreamReader.readNTc	Cs�	|jr)|jd}|jd=t|j�dkr|jd|_d|_|s'|jdd�d}|S|p,d}|j}	|j|dd�}|rWt|t�rD|�d�sNt|t	�rW|�d	�rW||jddd
�7}||7}|jdd�}|r�t|�dkr�|d}|d=t|�dkr�|d|j7<||_d|_n|d|j|_|s�|jdd�d}	|S|d}|djdd�d}||kr�|j�
|dd��|j|_|r�|}	|S|}	|S|r�|dur�|r�|s�|jdd�d}	|S|dkr�|d
9}q1)Nrr�Fr��HT)r��
�
)r�r�r�i@�)r�r�r�r�r�r��
isinstance�str�endswith�bytesry)	r:r�r��line�readsizerir��line0withend�line0withoutendr;r;r<�readlinesr	
��������zStreamReader.readlinecCs	|��}|�|�Sr1)r�r�)r:�sizehintr�rir;r;r<�	readlines^s

zStreamReader.readlinescCs	d|_|j|_d|_dSrs)r�r�r�r�rAr;r;r<rVms
zStreamReader.resetrcCs	|j�||�|��dSr1r}rr;r;r<r~zszStreamReader.seekcCs	|��}|r	|St�r1)r��
StopIteration)r:r�r;r;r<�__next__�s
zStreamReader.__next__cCr�r1r;rAr;r;r<�__iter__�rWzStreamReader.__iter__cCr�r1r�r�r;r;r<r��r�zStreamReader.__getattr__cCr�r1r;rAr;r;r<r��rWzStreamReader.__enter__cCr�r1r�r�r;r;r<r��rpzStreamReader.__exit__rK)r�r�F)NTr�)rCr>r?r�r�rQr$r�r�r�rVr~r�r�r�r�r�r�r;r;r;r<r�s



P
K


�rc@s�eZdZ	dZd dd�Zd!dd�Zd"d	d
�Zd"dd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zd#dd�Z
efdd�Zdd�Zdd�ZdS)$r�unknownrDcCs*	||_|||�|_|||�|_||_dSr1)ru�reader�writerrJ)r:ru�Reader�WriterrJr;r;r<rQ�s

zStreamReaderWriter.__init__r�cC�|j�|�Sr1)r�r��r:r�r;r;r<r���zStreamReaderWriter.readNcCr�r1)r�r�r�r;r;r<r��r�zStreamReaderWriter.readlinecCr�r1)r�r�)r:r�r;r;r<r��r�zStreamReaderWriter.readlinescCs	t|j�Sr1)�nextr�rAr;r;r<r��s
zStreamReaderWriter.__next__cCr�r1r;rAr;r;r<r��rWzStreamReaderWriter.__iter__cCr�r1)r�rw)r:rir;r;r<rw�r�zStreamReaderWriter.writecCr�r1)r�r|rzr;r;r<r|�r�zStreamReaderWriter.writelinescC�|j��|j��dSr1�r�rVr�rAr;r;r<rV��
zStreamReaderWriter.resetrcCs>|j�||�|j��|dkr|dkr|j��dSdSdSrY)rur~r�rVr�rr;r;r<r~�s

�zStreamReaderWriter.seekcCr�r1r�r�r;r;r<r��r�zStreamReaderWriter.__getattr__cCr�r1r;rAr;r;r<r��rWzStreamReaderWriter.__enter__cCr�r1r�r�r;r;r<r��rpzStreamReaderWriter.__exit__rK�r�r1r�)rCr>r?�encodingrQr�r�r�r�r�rwr|rVr~r�r�r�r�r;r;r;r<r�s"	





�	rc@s�eZdZ	dZdZ	d dd�Zd!dd�Zd"d	d
�Zd"dd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
d#dd�Zefdd�Zdd�Zdd�ZdS)$rr�rDcCs6	||_||_||_|||�|_|||�|_||_dSr1)rur#r$r�r�rJ)r:rur#r$r�r�rJr;r;r<rQs
zStreamRecoder.__init__r�cCs"|j�|�}|�||j�\}}|Sr1)r�r�r#rJ�r:r�ri�bytesencodedr;r;r<r�#szStreamRecoder.readNcCs6|dur
|j��}n|j�|�}|�||j�\}}|Sr1)r�r�r#rJr�r;r;r<r�)s
zStreamRecoder.readlinecCs(|j��}|�||j�\}}|jdd�S)NTr�)r�r�r#rJr�)r:r�rir�r;r;r<r�2�
zStreamRecoder.readlinescCs"	t|j�}|�||j�\}}|Sr1)r�r�r#rJ)r:rir�r;r;r<r�8s
zStreamRecoder.__next__cCr�r1r;rAr;r;r<r�?rWzStreamRecoder.__iter__cCs|�||j�\}}|j�|�Sr1)r$rJr�rw)r:ri�bytesdecodedr;r;r<rwBszStreamRecoder.writecCs(d�|�}|�||j�\}}|j�|�Srs)ryr$rJr�rw)r:r{rir�r;r;r<r|Gr�zStreamRecoder.writelinescCr�r1r�rAr;r;r<rVMr�zStreamRecoder.resetrcCs |j�||�|j�||�dSr1)r�r~r�rr;r;r<r~RszStreamRecoder.seekcCr�r1r�r�r;r;r<r�Xr�zStreamRecoder.__getattr__cCr�r1r;rAr;r;r<r�_rWzStreamRecoder.__enter__cCr�r1r�r�r;r;r<r�brpzStreamRecoder.__exit__rKr�r1r�)rCr>r?�
data_encoding�
file_encodingrQr�r�r�r�r�rwr|rVr~r�r�r�r�r;r;r;r<r�s&
�


	

�r�rrDr�cCsl	|dur
d|vr
|d}t�|||�}|dur|Szt|�}t||j|j|�}||_|WS|���)N�b)�builtinsrrrr8r7r�r�)�filename�moder�rJ�	buffering�file�info�srwr;r;r<rgsrcCsH	|dur|}t|�}t|�}t||j|j|j|j|�}||_||_|Sr1)rrr#r$r8r7r�r�)r�r�r�rJ�	data_info�	file_info�srr;r;r<r�s
�rcC�	t|�jSr1)rr#�r�r;r;r<r��
rcCr�r1)rr$r�r;r;r<r�r�rcC� 	t|�j}|durt|��|Sr1)rr5�LookupError)r��encoderr;r;r<r��

rcCr�r1)rr6r�)r��decoderr;r;r<r �r�r cCr�r1)rr8r�r;r;r<r!�r�r!cCr�r1)rr7r�r;r;r<r"�r�r"ck�T�	t|�|fi|��}|D]}|�|�}|r|Vq|�dd�}|r(|VdSdS)NrNT)rr#)�iteratorr�rJ�kwargsr�rI�outputr;r;r<r%��
�
�r%ckr�)NrqT)r r$)r�r�rJr�r�rIr�r;r;r<r&r�r&cCs	dd�|D�S)NcSsi|]}||�qSr;r;)�.0�ir;r;r<�
<dictcomp>0sz&make_identity_dict.<locals>.<dictcomp>r;)�rngr;r;r<�make_identity_dict(sr�cCs6	i}|��D]\}}||vr|||<qd||<q|Sr1)�items)�decoding_map�m�k�vr;r;r<�make_encoding_map2s

r��ignore�replace�xmlcharrefreplace�backslashreplace�namereplace�__main__zlatin-1zutf-8)r�NrDr�)NrDrK);r��sys�_codecs�ImportErrorZwhy�SystemError�__all__rr	rrrrr�	byteorderrrrrr
r
rr2rrrxrr`rrrrrrrrrrrrr r!r"r%r&r�r�r.r'r(r)r*r+r,r��_falseZ	encodingsrC�stdout�stdinr;r;r;r<�<module>s�	��
B("1+IzW
t
1&






�
�

?>