AlkantarClanX12

Your IP : 18.224.59.107


Current Path : /proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/codecs.cpython-39.opt-2.pyc

a

R�fA��
@sJddlZddlZzddlTWn0eyLZzede��WYdZ[n
dZ[00gd�ZdZdZZ	dZ
ZdZd	Z
ejd
kr�e	ZZeZneZZe
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*dEd4d5�Z+d6d7�Z,d8d9�Z-z4e.d �Z/e.d:�Z0e.d;�Z1e.d<�Z2e.d=�Z3e.d>�Z4Wn,e5�ydZ/dZ0dZ1dZ2dZ3dZ4Yn0dZ6e6�rddl7Z7e8d?k�rFe#ej9d@dA�e_9e#ej:dAd@�e_:dS)F�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(eZdZdZddd�dd�Zdd�ZdS)	rTN)�_is_text_encodingc
CsPt�|||||f�}	||	_||	_||	_||	_||	_||	_||	_|durL||	_	|	S�N)
�tuple�__new__�namer#r$�incrementalencoder�incrementaldecoder�streamwriter�streamreaderr0)
�clsr#r$r8r7r5r6r4r0�self�r;�+/opt/alt/python39/lib64/python3.9/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 eZdZddd�Zddd�ZdS)	r�strictcCst�dSr1��NotImplementedError�r:�input�errorsr;r;r<r#�szCodec.encodecCst�dSr1rErGr;r;r<r$�szCodec.decodeN)rD)rD)rCr>r?r#r$r;r;r;r<rrs
rc@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)rrDcCs||_d|_dS�N�)rI�buffer�r:rIr;r;r<�__init__�szIncrementalEncoder.__init__FcCst�dSr1rE�r:rH�finalr;r;r<r#�szIncrementalEncoder.encodecCsdSr1r;rAr;r;r<�reset�szIncrementalEncoder.resetcCsdS�Nrr;rAr;r;r<�getstate�szIncrementalEncoder.getstatecCsdSr1r;�r:�stater;r;r<�setstate�szIncrementalEncoder.setstateN)rD)F)rCr>r?rNr#rQrSrVr;r;r;r<r�s


rc@s@eZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�ZdS)�BufferedIncrementalEncoderrDcCst�||�d|_dSrJ)rrNrLrMr;r;r<rN�sz#BufferedIncrementalEncoder.__init__cCst�dSr1rE�r:rHrIrPr;r;r<�_buffer_encode�sz)BufferedIncrementalEncoder._buffer_encodeFcCs0|j|}|�||j|�\}}||d�|_|Sr1)rLrYrI�r:rHrP�data�result�consumedr;r;r<r#�s
z!BufferedIncrementalEncoder.encodecCst�|�d|_dSrJ)rrQrLrAr;r;r<rQ�s
z BufferedIncrementalEncoder.resetcCs
|jpdSrR�rLrAr;r;r<rS�sz#BufferedIncrementalEncoder.getstatecCs|pd|_dSrJr^rTr;r;r<rV�sz#BufferedIncrementalEncoder.setstateN)rD)F)	rCr>r?rNrYr#rQrSrVr;r;r;r<rW�s

rWc@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)rrDcCs
||_dSr1)rIrMr;r;r<rNszIncrementalDecoder.__init__FcCst�dSr1rErOr;r;r<r$szIncrementalDecoder.decodecCsdSr1r;rAr;r;r<rQszIncrementalDecoder.resetcCsdS)N)�rr;rAr;r;r<rSszIncrementalDecoder.getstatecCsdSr1r;rTr;r;r<rV'szIncrementalDecoder.setstateN)rD)F)rCr>r?rNr$rQrSrVr;r;r;r<r�s



rc@s@eZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�ZdS)�BufferedIncrementalDecoderrDcCst�||�d|_dS�Nr_)rrNrLrMr;r;r<rN5sz#BufferedIncrementalDecoder.__init__cCst�dSr1rErXr;r;r<�_buffer_decode:sz)BufferedIncrementalDecoder._buffer_decodeFcCs0|j|}|�||j|�\}}||d�|_|Sr1)rLrbrIrZr;r;r<r$?s
z!BufferedIncrementalDecoder.decodecCst�|�d|_dSra)rrQrLrAr;r;r<rQGs
z BufferedIncrementalDecoder.resetcCs
|jdfSrRr^rAr;r;r<rSKsz#BufferedIncrementalDecoder.getstatecCs|d|_dSrRr^rTr;r;r<rVOsz#BufferedIncrementalDecoder.setstateN)rD)F)	rCr>r?rNrbr$rQrSrVr;r;r;r<r`/s

r`c@sTeZdZddd�Zdd�Zdd�Zdd	�Zddd�Zefd
d�Z	dd�Z
dd�ZdS)rrDcCs||_||_dSr1)�streamrI�r:rcrIr;r;r<rN\szStreamWriter.__init__cCs"|�||j�\}}|j�|�dSr1)r#rIrc�write)r:�objectr[r]r;r;r<reuszStreamWriter.writecCs|�d�|��dSrJ)re�join�r:�listr;r;r<�
writelines|szStreamWriter.writelinescCsdSr1r;rAr;r;r<rQ�s
zStreamWriter.resetrcCs*|j�||�|dkr&|dkr&|��dSrR�rc�seekrQ�r:�offset�whencer;r;r<rl�szStreamWriter.seekcCs||j|�Sr1�rc�r:r4�getattrr;r;r<�__getattr__�szStreamWriter.__getattr__cCs|Sr1r;rAr;r;r<�	__enter__�szStreamWriter.__enter__cCs|j��dSr1�rc�close�r:�type�value�tbr;r;r<�__exit__�szStreamWriter.__exit__N)rD)r)rCr>r?rNrerjrQrlrrrsrtr{r;r;r;r<rZs

�
rc@s�eZdZeZddd�Zd dd�Zd!dd	�Zd"dd
�Zd#dd�Z	dd�Z
d$dd�Zdd�Zdd�Z
efdd�Zdd�Zdd�Zd
S)%rrDcCs.||_||_d|_|��|_|j|_d|_dSra)rcrI�
bytebuffer�charbuffertype�_empty_charbuffer�
charbuffer�
linebufferrdr;r;r<rN�s
zStreamReader.__init__cCst�dSr1rErGr;r;r<r$�szStreamReader.decode���Fc
CsP|jr|j�|j�|_d|_|dkr(|}|dkrBt|j�|krB�q|dkrV|j��}n|j�|�}|j|}|st�qz|�||j	�\}}Wnbt
y�}zJ|r�|�|d|j�|j	�\}}|jdd�}	t|	�dkr؂n�WYd}~n
d}~00||d�|_|j|7_|s(�qq(|dk�r.|j}
|j|_n|jd|�}
|j|d�|_|
S)NrT��keepends�)
r�r~rgr�lenrc�readr|r$rI�UnicodeDecodeError�start�
splitlines)r:�size�chars�	firstline�newdatar[�newchars�decodedbytes�exc�linesr\r;r;r<r��sD
�

zStreamReader.readNTc	Cs�|jrP|jd}|jd=t|j�dkr8|jd|_d|_|sL|jdd�d}|S|pVd}|j}|j|dd�}|r�t|t�r�|�d�s�t|t	�r�|�d	�r�||jddd
�7}||7}|jdd�}|�r�t|�dk�r8|d}|d=t|�dk�r|d|j7<||_d|_n|d|j|_|�s�|jdd�d}�q�|d}|djdd�d}||k�r�|j�
|dd��|j|_|�r�|}n|}�q�|�r�|du�r�|�r�|�s�|jdd�d}�q�|dkr^|d
9}q^|S)Nrr�Fr��HT)r��
�
)r�r�r�i@�)r�r�rr�r~r��
isinstance�str�endswith�bytesrg)	r:r�r��line�readsizer[r��line0withend�line0withoutendr;r;r<�readlinesd
��
�
zStreamReader.readlinecCs|��}|�|�Sr1)r�r�)r:�sizehintr�r[r;r;r<�	readlines^szStreamReader.readlinescCsd|_|j|_d|_dSra)r|r~rr�rAr;r;r<rQms	zStreamReader.resetrcCs|j�||�|��dSr1rkrmr;r;r<rlzszStreamReader.seekcCs|��}|r|St�dSr1)r��
StopIteration)r:r�r;r;r<�__next__�szStreamReader.__next__cCs|Sr1r;rAr;r;r<�__iter__�szStreamReader.__iter__cCs||j|�Sr1rprqr;r;r<rs�szStreamReader.__getattr__cCs|Sr1r;rAr;r;r<rt�szStreamReader.__enter__cCs|j��dSr1rurwr;r;r<r{�szStreamReader.__exit__)rD)rD)r�r�F)NT)NT)r)rCr>r?r�r}rNr$r�r�r�rQrlr�r�rrrsrtr{r;r;r;r<r�s


P
K

�
rc@s�eZdZdZd 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)rc�reader�writerrI)r:rc�Reader�WriterrIr;r;r<rN�s
zStreamReaderWriter.__init__r�cCs|j�|�Sr1)r�r��r:r�r;r;r<r��szStreamReaderWriter.readNcCs|j�|�Sr1)r�r�r�r;r;r<r��szStreamReaderWriter.readlinecCs|j�|�Sr1)r�r�)r:r�r;r;r<r��szStreamReaderWriter.readlinescCs
t|j�Sr1)�nextr�rAr;r;r<r��szStreamReaderWriter.__next__cCs|Sr1r;rAr;r;r<r��szStreamReaderWriter.__iter__cCs|j�|�Sr1)r�re)r:r[r;r;r<re�szStreamReaderWriter.writecCs|j�|�Sr1)r�rjrhr;r;r<rj�szStreamReaderWriter.writelinescCs|j��|j��dSr1�r�rQr�rAr;r;r<rQ�s
zStreamReaderWriter.resetrcCs6|j�||�|j��|dkr2|dkr2|j��dSrR)rcrlr�rQr�rmr;r;r<rl�s
zStreamReaderWriter.seekcCs||j|�Sr1rprqr;r;r<rs�szStreamReaderWriter.__getattr__cCs|Sr1r;rAr;r;r<rt�szStreamReaderWriter.__enter__cCs|j��dSr1rurwr;r;r<r{�szStreamReaderWriter.__exit__)rD)r�)N)N)r)rCr>r?�encodingrNr�r�r�r�r�rerjrQrlrrrsrtr{r;r;r;r<r�s




�
	rc@s�eZdZdZdZd 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�rDcCs4||_||_||_|||�|_|||�|_||_dSr1)rcr#r$r�r�rI)r:rcr#r$r�r�rIr;r;r<rNszStreamRecoder.__init__r�cCs"|j�|�}|�||j�\}}|Sr1)r�r�r#rI�r:r�r[�bytesencodedr;r;r<r�#szStreamRecoder.readNcCs6|dur|j��}n|j�|�}|�||j�\}}|Sr1)r�r�r#rIr�r;r;r<r�)s
zStreamRecoder.readlinecCs(|j��}|�||j�\}}|jdd�S)NTr�)r�r�r#rIr�)r:r�r[r�r;r;r<r�2s
zStreamRecoder.readlinescCs t|j�}|�||j�\}}|Sr1)r�r�r#rI)r:r[r�r;r;r<r�8s
zStreamRecoder.__next__cCs|Sr1r;rAr;r;r<r�?szStreamRecoder.__iter__cCs|�||j�\}}|j�|�Sr1)r$rIr�re)r:r[�bytesdecodedr;r;r<reBszStreamRecoder.writecCs(d�|�}|�||j�\}}|j�|�Sra)rgr$rIr�re)r:rir[r�r;r;r<rjGs
zStreamRecoder.writelinescCs|j��|j��dSr1r�rAr;r;r<rQMs
zStreamRecoder.resetrcCs |j�||�|j�||�dSr1)r�rlr�rmr;r;r<rlRszStreamRecoder.seekcCs||j|�Sr1rprqr;r;r<rsXszStreamRecoder.__getattr__cCs|Sr1r;rAr;r;r<rt_szStreamRecoder.__enter__cCs|j��dSr1rurwr;r;r<r{bszStreamRecoder.__exit__)rD)r�)N)N)r)rCr>r?�
data_encoding�
file_encodingrNr�r�r�r�r�rerjrQrlrrrsrtr{r;r;r;r<r�s"�


	

�
r�rrDr�cCst|durd|vr|d}t�|||�}|dur2|Sz&t|�}t||j|j|�}||_|WS|���Yn0dS)N�b)�builtinsrrrr8r7r�rv)�filename�moder�rI�	buffering�file�info�srwr;r;r<rgs�rcCsF|dur|}t|�}t|�}t||j|j|j|j|�}||_||_|Sr1)rrr#r$r8r7r�r�)r�r�r�rI�	data_info�	file_info�srr;r;r<r�s
�rcCs
t|�jSr1)rr#�r�r;r;r<r�srcCs
t|�jSr1)rr$r�r;r;r<r�srcCst|�j}|durt|��|Sr1)rr5�LookupError)r��encoderr;r;r<r�s	
rcCst|�j}|durt|��|Sr1)rr6r�)r��decoderr;r;r<r �s	
r cCs
t|�jSr1)rr8r�r;r;r<r!�sr!cCs
t|�jSr1)rr7r�r;r;r<r"�sr"cksLt|�|fi|��}|D]}|�|�}|r|Vq|�dd�}|rH|VdS)NrKT)rr#)�iteratorr�rI�kwargsr�rH�outputr;r;r<r%s	
r%cksLt|�|fi|��}|D]}|�|�}|r|Vq|�dd�}|rH|VdS)Nr_T)r r$)r�r�rIr�r�rHr�r;r;r<r&s	
r&cCsdd�|D�S)NcSsi|]
}||�qSr;r;)�.0�ir;r;r<�
<dictcomp>/r_z&make_identity_dict.<locals>.<dictcomp>r;)�rngr;r;r<�make_identity_dict'sr�cCs4i}|��D]"\}}||vr&|||<qd||<q|Sr1)�items)�decoding_map�m�k�vr;r;r<�make_encoding_map1s


r��ignore�replace�xmlcharrefreplace�backslashreplace�namereplace�__main__zlatin-1zutf-8)r�NrDr�)NrD)rD)rD);r��sys�_codecs�ImportErrorZwhy�SystemError�__all__rr	rrrrr�	byteorderrrrrr
r
rr2rrrfrrWrr`rrrrrrrrrr 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+IzWt
0
&