AlkantarClanX12

Your IP : 18.188.140.232


Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/codecs.cpython-37.opt-2.pyc

B

YI~d��,@s�ddlZddlZyddlTWn.ek
rJZzede��WddZ[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-y4e.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$r7r6r4r5r3r0�self�r:�+/opt/alt/python37/lib64/python3.7/codecs.pyr2^szCodecInfo.__new__cCsd|jj|jj|jt|�fS)Nz%<%s.%s object for encoding %s at %#x>)�	__class__�
__module__�__qualname__r3�id)r9r:r:r;�__repr__mszCodecInfo.__repr__)NNNNN)�__name__r=r>r0r2r@r:r:r:r;rSs
	
c@s eZdZddd�Zddd�ZdS)	r�strictcCst�dS)N)�NotImplementedError)r9�input�errorsr:r:r;r#�szCodec.encodecCst�dS)N)rC)r9rDrEr:r:r;r$�szCodec.decodeN)rB)rB)rAr=r>r#r$r:r:r:r;rrs
c@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)rrBcCs||_d|_dS)N�)rE�buffer)r9rEr:r:r;�__init__�szIncrementalEncoder.__init__FcCst�dS)N)rC)r9rD�finalr:r:r;r#�szIncrementalEncoder.encodecCsdS)Nr:)r9r:r:r;�reset�szIncrementalEncoder.resetcCsdS)Nrr:)r9r:r:r;�getstate�szIncrementalEncoder.getstatecCsdS)Nr:)r9�stater:r:r;�setstate�szIncrementalEncoder.setstateN)rB)F)rAr=r>rHr#rJrKrMr:r:r:r;r�s


c@s@eZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�ZdS)�BufferedIncrementalEncoderrBcCst�||�d|_dS)NrF)rrHrG)r9rEr:r:r;rH�sz#BufferedIncrementalEncoder.__init__cCst�dS)N)rC)r9rDrErIr:r:r;�_buffer_encode�sz)BufferedIncrementalEncoder._buffer_encodeFcCs0|j|}|�||j|�\}}||d�|_|S)N)rGrOrE)r9rDrI�data�result�consumedr:r:r;r#�s
z!BufferedIncrementalEncoder.encodecCst�|�d|_dS)NrF)rrJrG)r9r:r:r;rJ�s
z BufferedIncrementalEncoder.resetcCs
|jpdS)Nr)rG)r9r:r:r;rK�sz#BufferedIncrementalEncoder.getstatecCs|pd|_dS)NrF)rG)r9rLr:r:r;rM�sz#BufferedIncrementalEncoder.setstateN)rB)F)	rAr=r>rHrOr#rJrKrMr:r:r:r;rN�s

rNc@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)rrBcCs
||_dS)N)rE)r9rEr:r:r;rHszIncrementalDecoder.__init__FcCst�dS)N)rC)r9rDrIr:r:r;r$szIncrementalDecoder.decodecCsdS)Nr:)r9r:r:r;rJszIncrementalDecoder.resetcCsdS)N)�rr:)r9r:r:r;rKszIncrementalDecoder.getstatecCsdS)Nr:)r9rLr:r:r;rM'szIncrementalDecoder.setstateN)rB)F)rAr=r>rHr$rJrKrMr:r:r:r;r�s



c@s@eZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�ZdS)�BufferedIncrementalDecoderrBcCst�||�d|_dS)NrS)rrHrG)r9rEr:r:r;rH5sz#BufferedIncrementalDecoder.__init__cCst�dS)N)rC)r9rDrErIr:r:r;�_buffer_decode:sz)BufferedIncrementalDecoder._buffer_decodeFcCs0|j|}|�||j|�\}}||d�|_|S)N)rGrUrE)r9rDrIrPrQrRr:r:r;r$?s
z!BufferedIncrementalDecoder.decodecCst�|�d|_dS)NrS)rrJrG)r9r:r:r;rJGs
z BufferedIncrementalDecoder.resetcCs
|jdfS)Nr)rG)r9r:r:r;rKKsz#BufferedIncrementalDecoder.getstatecCs|d|_dS)Nr)rG)r9rLr:r:r;rMOsz#BufferedIncrementalDecoder.setstateN)rB)F)	rAr=r>rHrUr$rJrKrMr:r:r:r;rT/s

rTc@sTeZdZddd�Zdd�Zdd�Zdd	�Zddd�Zefd
d�Z	dd�Z
dd�ZdS)rrBcCs||_||_dS)N)�streamrE)r9rVrEr:r:r;rH\szStreamWriter.__init__cCs"|�||j�\}}|j�|�dS)N)r#rErV�write)r9�objectrPrRr:r:r;rWuszStreamWriter.writecCs|�d�|��dS)NrF)rW�join)r9�listr:r:r;�
writelines|szStreamWriter.writelinescCsdS)Nr:)r9r:r:r;rJ�s
zStreamWriter.resetrcCs*|j�||�|dkr&|dkr&|��dS)Nr)rV�seekrJ)r9�offset�whencer:r:r;r\�szStreamWriter.seekcCs||j|�S)N)rV)r9r3�getattrr:r:r;�__getattr__�szStreamWriter.__getattr__cCs|S)Nr:)r9r:r:r;�	__enter__�szStreamWriter.__enter__cCs|j��dS)N)rV�close)r9�type�value�tbr:r:r;�__exit__�szStreamWriter.__exit__N)rB)r)rAr=r>rHrWr[rJr\r_r`rarfr: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)%rrBcCs.||_||_d|_|��|_|j|_d|_dS)NrS)rVrE�
bytebuffer�charbuffertype�_empty_charbuffer�
charbuffer�
linebuffer)r9rVrEr:r:r;rH�s
zStreamReader.__init__cCst�dS)N)rC)r9rDrEr:r:r;r$�szStreamReader.decode���Fc
CsL|jr|j�|j�|_d|_|dkr(|}x�|dkrBt|j�|krBP|dkrV|j��}n|j�|�}|j|}|srPy|�||j	�\}}Wn`t
k
r�}zB|r�|�|d|j�|j	�\}}|jdd�}	t|	�dkr؂n�Wdd}~XYnX||d�|_|j|7_|s*Pq*W|dk�r*|j}
|j|_n|jd|�}
|j|d�|_|
S)NrT)�keepends�)
rkrirYrj�lenrV�readrgr$rE�UnicodeDecodeError�start�
splitlines)r9�size�chars�	firstline�newdatarP�newchars�decodedbytes�exc�linesrQr:r:r;rp�sD


zStreamReader.readNTc	Cs�|jrP|jd}|jd=t|j�dkr8|jd|_d|_|sL|jdd�d}|S|pVd}|j}�xn|j|dd�}|r�t|t�r�|�d�s�t|t	�r�|�d	�r�||jddd
�7}||7}|jdd�}|�r�t|�dk�r:|d}|d=t|�dk�r|d|j7<||_d|_n|d|j|_|�s8|jdd�d}P|d}|djdd�d}||k�r�|j�
|dd��|j|_|�r�|}n|}P|�r�|dk	�r�|�r�|�s�|jdd�d}P|dkrb|d
9}qbW|S)NrrnF)rm�HT)rv�
�
)rtrurli@�)rkrorjrsrirp�
isinstance�str�endswith�bytesrY)	r9rtrm�line�readsizerPr{�line0withend�line0withoutendr:r:r;�readlines^


zStreamReader.readlinecCs|��}|�|�S)N)rprs)r9�sizehintrmrPr:r:r;�	readlines^szStreamReader.readlinescCsd|_|j|_d|_dS)NrS)rgrirjrk)r9r:r:r;rJms	zStreamReader.resetrcCs|j�||�|��dS)N)rVr\rJ)r9r]r^r:r:r;r\zszStreamReader.seekcCs|��}|r|St�dS)N)r��
StopIteration)r9r�r:r:r;�__next__�szStreamReader.__next__cCs|S)Nr:)r9r:r:r;�__iter__�szStreamReader.__iter__cCs||j|�S)N)rV)r9r3r_r:r:r;r`�szStreamReader.__getattr__cCs|S)Nr:)r9r:r:r;ra�szStreamReader.__enter__cCs|j��dS)N)rVrb)r9rcrdrer:r:r;rf�szStreamReader.__exit__)rB)rB)rlrlF)NT)NT)r)rAr=r>r�rhrHr$rpr�r�rJr\r�r�r_r`rarfr: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�unknownrBcCs(||_|||�|_|||�|_||_dS)N)rV�reader�writerrE)r9rV�Reader�WriterrEr:r:r;rH�s
zStreamReaderWriter.__init__rlcCs|j�|�S)N)r�rp)r9rtr:r:r;rp�szStreamReaderWriter.readNcCs|j�|�S)N)r�r�)r9rtr:r:r;r��szStreamReaderWriter.readlinecCs|j�|�S)N)r�r�)r9r�r:r:r;r��szStreamReaderWriter.readlinescCs
t|j�S)N)�nextr�)r9r:r:r;r��szStreamReaderWriter.__next__cCs|S)Nr:)r9r:r:r;r��szStreamReaderWriter.__iter__cCs|j�|�S)N)r�rW)r9rPr:r:r;rW�szStreamReaderWriter.writecCs|j�|�S)N)r�r[)r9rZr:r:r;r[�szStreamReaderWriter.writelinescCs|j��|j��dS)N)r�rJr�)r9r:r:r;rJ�s
zStreamReaderWriter.resetrcCs6|j�||�|j��|dkr2|dkr2|j��dS)Nr)rVr\r�rJr�)r9r]r^r:r:r;r\�s
zStreamReaderWriter.seekcCs||j|�S)N)rV)r9r3r_r:r:r;r`�szStreamReaderWriter.__getattr__cCs|S)Nr:)r9r:r:r;ra�szStreamReaderWriter.__enter__cCs|j��dS)N)rVrb)r9rcrdrer:r:r;rf�szStreamReaderWriter.__exit__)rB)rl)N)N)r)rAr=r>�encodingrHrpr�r�r�r�rWr[rJr\r_r`rarfr: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�rBcCs4||_||_||_|||�|_|||�|_||_dS)N)rVr#r$r�r�rE)r9rVr#r$r�r�rEr:r:r;rHszStreamRecoder.__init__rlcCs"|j�|�}|�||j�\}}|S)N)r�rpr#rE)r9rtrP�bytesencodedr:r:r;rp#szStreamRecoder.readNcCs6|dkr|j��}n|j�|�}|�||j�\}}|S)N)r�r�r#rE)r9rtrPr�r:r:r;r�)s
zStreamRecoder.readlinecCs(|j��}|�||j�\}}|jdd�S)NT)rm)r�rpr#rErs)r9r�rPr�r:r:r;r�2s
zStreamRecoder.readlinescCs t|j�}|�||j�\}}|S)N)r�r�r#rE)r9rPr�r:r:r;r�8s
zStreamRecoder.__next__cCs|S)Nr:)r9r:r:r;r�?szStreamRecoder.__iter__cCs|�||j�\}}|j�|�S)N)r$rEr�rW)r9rP�bytesdecodedr:r:r;rWBszStreamRecoder.writecCs(d�|�}|�||j�\}}|j�|�S)NrS)rYr$rEr�rW)r9rZrPr�r:r:r;r[Gs
zStreamRecoder.writelinescCs|j��|j��dS)N)r�rJr�)r9r:r:r;rJMs
zStreamRecoder.resetrcCs |j�||�|j�||�dS)N)r�r\r�)r9r]r^r:r:r;r\RszStreamRecoder.seekcCs||j|�S)N)rV)r9r3r_r:r:r;r`XszStreamRecoder.__getattr__cCs|S)Nr:)r9r:r:r;ra_szStreamRecoder.__enter__cCs|j��dS)N)rVrb)r9rcrdrer:r:r;rfbszStreamRecoder.__exit__)rB)rl)N)N)r)rAr=r>�
data_encoding�
file_encodingrHrpr�r�r�r�rWr[rJr\r_r`rarfr:r:r:r;r�s


	

�rrBrncCsr|dk	rd|kr|d}t�|||�}|dkr2|Sy$t|�}t||j|j|�}||_|S|���YnXdS)N�b)�builtinsrrrr7r6r�rb)�filename�moder�rE�	buffering�file�info�srwr:r:r;rgscCsF|dkr|}t|�}t|�}t||j|j|j|j|�}||_||_|S)N)rrr#r$r7r6r�r�)r�r�r�rE�	data_info�	file_info�srr:r:r;r�scCs
t|�jS)N)rr#)r�r:r:r;r�scCs
t|�jS)N)rr$)r�r:r:r;r�scCst|�j}|dkrt|��|S)N)rr4�LookupError)r��encoderr:r:r;r�s	
cCst|�j}|dkrt|��|S)N)rr5r�)r��decoderr:r:r;r �s	
cCs
t|�jS)N)rr7)r�r:r:r;r!�scCs
t|�jS)N)rr6)r�r:r:r;r"�scksLt|�|f|�}x |D]}|�|�}|r|VqW|�dd�}|rH|VdS)NrFT)rr#)�iteratorr�rE�kwargsr�rD�outputr:r:r;r%s	


cksLt|�|f|�}x |D]}|�|�}|r|VqW|�dd�}|rH|VdS)NrST)r r$)r�r�rEr�r�rDr�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�cCs8i}x.|��D]"\}}||kr(|||<qd||<qW|S)N)�items)�decoding_map�m�k�vr:r:r;�make_encoding_map0s

r��ignore�replace�xmlcharrefreplace�backslashreplace�namereplace�__main__zlatin-1zutf-8)r�NrBrn)NrB)rB)rB);r��sys�_codecs�ImportErrorZwhy�SystemError�__all__rr	rrrrr�	byteorderrrrrr
r
rr1rrrXrrNrrTrrrrrrrrrr r!r"r%r&r�r�r.r'r(r)r*r+r,r��_false�	encodingsrA�stdout�stdinr:r:r:r;�<module>
s�

B("1+IzWt
/
&