Your IP : 3.133.145.168


Current Path : /lib64/python3.8/__pycache__/
Upload File :
Current File : //lib64/python3.8/__pycache__/codecs.cpython-38.opt-2.pyc

U

e5d;��,@s�ddlZddlZzddlTWn.ek
rJZzede��W5dZ[XYnXdddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/g,Zd0Zd1ZZ	d2Z
Zd3Zd4Z
ejd5kr�e	ZZeZneZZe
Ze	ZeZeZe
ZGd6d�de�ZGd7d�d�ZGd8d�de�ZGd9d:�d:e�ZGd;d�de�ZGd<d=�d=e�ZGd>d�de�ZGd?d�de�ZGd@d�d�Z GdAd�d�Z!d[dEd�Z"d\dFd�Z#dGd�Z$dHd�Z%dId �Z&dJd!�Z'dKd"�Z(dLd#�Z)d]dMd&�Z*d^dNd'�Z+dOdP�Z,dQdR�Z-z4e.dC�Z/e.dS�Z0e.dT�Z1e.dU�Z2e.dV�Z3e.dW�Z4Wn.e5k
�r\dZ/dZ0dZ1dZ2dZ3dZ4YnXdZ6e6�rpddl7Z7e8dXk�r�e#ej9dYdZ�e_9e#ej:dZdY�e_:dS)_�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�}	||	_||	_||	_||	_||	_||	_||	_|dk	rL||	_	|	S�N)
�tuple�__new__�namer#r$�incrementalencoder�incrementaldecoder�streamwriter�streamreaderr0)
�clsr#r$r8r7r5r6r4r0�self�r;�/usr/lib64/python3.8/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	��c@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
c@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


c@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



c@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

�
c@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
CsN|jr|j�|j�|_d|_|dkr(|}|dkrBt|j�|krB�q|dkrV|j��}n|j�|�}|j|}|st�qz|�||j	�\}}Wn`t
k
r�}zB|r�|�|d|j�|j	�\}}|jdd�}	t|	�dkrڂn�W5d}~XYnX||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�|dk	�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

�
c@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




�
	c@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|dkr|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"�


	

�
�rrDr�cCst|dk	rd|kr|d}t�|||�}|dkr2|Sz&t|�}t||j|j|�}||_|WS|���YnXdS)N�b)�builtinsrrrr8r7r�rv)�filename�moder�rI�	buffering�file�info�srwr;r;r<rgs�cCsF|dkr|}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�cCs
t|�jSr1)rr#�r�r;r;r<r�scCs
t|�jSr1)rr$r�r;r;r<r�scCst|�j}|dkrt|��|Sr1)rr5�LookupError)r��encoderr;r;r<r�s	
cCst|�j}|dkrt|��|Sr1)rr6r�)r��decoderr;r;r<r �s	
cCs
t|�jSr1)rr8r�r;r;r<r!�scCs
t|�jSr1)rr7r�r;r;r<r"�scksHt|�|f|�}|D]}|�|�}|r|Vq|�dd�}|rD|VdS)NrKT)rr#)�iteratorr�rI�kwargsr�rH�outputr;r;r<r%s	
cksHt|�|f|�}|D]}|�|�}|r|Vq|�dd�}|rD|VdS)Nr_T)r r$)r�r�rIr�r�rHr�r;r;r<r&s	
cCsdd�|D�S)NcSsi|]
}||�qSr;r;)�.0�ir;r;r<�
<dictcomp>/sz&make_identity_dict.<locals>.<dictcomp>r;)�rngr;r;r<�make_identity_dict'sr�cCs4i}|��D]"\}}||kr&|||<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
&










?>