AlkantarClanX12

Your IP : 3.138.170.67


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/codecs.cpython-35.opt-2.pyc



���]���:@s�ddlZddlZyddlTWn5ek
r]Zzede��WYddZ[XnXdddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/g,Zd0Zd1ZZ	d2Z
Zd3Zd4Z
ejd5kr0e	ZZeZneZZe
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!dBddCdDdEd�Z"ddCdFd�Z#dGd�Z$dHd�Z%dId �Z&dJd!�Z'dKd"�Z(dLd#�Z)dCdMd&�Z*dCdNd'�Z+dOdP�Z,dQdR�Z-yLe.dC�Z/e.dS�Z0e.dT�Z1e.dU�Z2e.dV�Z3e.dW�Z4Wn6e5k
rWdZ/dZ0dZ1dZ2dZ3dZ4YnXdZ6e6rpddl7Z7e8dXkr�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	@sCeZdZdZddddddddd�Zdd�ZdS)rTN�_is_text_encodingc
Csvtj|||||f�}	||	_||	_||	_||	_||	_||	_||	_|dk	rr||	_	|	S)N)
�tuple�__new__�namer#r$�incrementalencoder�incrementaldecoder�streamwriter�streamreaderr0)
�clsr#r$r7r6r4r5r3r0�self�r:�+/opt/alt/python35/lib64/python3.5/codecs.pyr2]s								zCodecInfo.__new__cCs)d|jj|jj|jt|�fS)Nz%<%s.%s object for encoding %s at %#x>)�	__class__�
__module__�__qualname__r3�id)r9r:r:r;�__repr__lszCodecInfo.__repr__)�__name__r=r>r0r2r@r:r:r:r;rRs
	
c@s.eZdZddd�Zddd�ZdS)r�strictcCs
t�dS)N)�NotImplementedError)r9�input�errorsr:r:r;r#�szCodec.encodecCs
t�dS)N)rC)r9rDrEr:r:r;r$�szCodec.decodeN)rAr=r>r#r$r:r:r:r;rqsc@sReZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)rrBcCs||_d|_dS)N�)rE�buffer)r9rEr:r:r;�__init__�s	zIncrementalEncoder.__init__FcCs
t�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)rAr=r>rHr#rJrKrMr:r:r:r;r�s
c@s^eZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�ZdS)�BufferedIncrementalEncoderrBcCstj||�d|_dS)NrF)rrHrG)r9rEr:r:r;rH�sz#BufferedIncrementalEncoder.__init__cCs
t�dS)N)rC)r9rDrErIr:r:r;�_buffer_encode�sz)BufferedIncrementalEncoder._buffer_encodeFcCsB|j|}|j||j|�\}}||d�|_|S)N)rGrOrE)r9rDrI�data�result�consumedr:r:r;r#�s
z!BufferedIncrementalEncoder.encodecCstj|�d|_dS)NrF)rrJrG)r9r:r:r;rJ�s
z BufferedIncrementalEncoder.resetcCs
|jpdS)Nr)rG)r9r:r:r;rK�sz#BufferedIncrementalEncoder.getstatecCs|p	d|_dS)NrF)rG)r9rLr:r:r;rM�sz#BufferedIncrementalEncoder.setstateN)	rAr=r>rHrOr#rJrKrMr:r:r:r;rN�srNc@sReZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)rrBcCs
||_dS)N)rE)r9rEr:r:r;rHszIncrementalDecoder.__init__FcCs
t�dS)N)rC)r9rDrIr:r:r;r$
szIncrementalDecoder.decodecCsdS)Nr:)r9r:r:r;rJszIncrementalDecoder.resetcCsdS)N�r)rSrr:)r9r:r:r;rKszIncrementalDecoder.getstatecCsdS)Nr:)r9rLr:r:r;rM&szIncrementalDecoder.setstateN)rAr=r>rHr$rJrKrMr:r:r:r;r�s

c@s^eZdZddd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�ZdS)�BufferedIncrementalDecoderrBcCstj||�d|_dS)NrS)rrHrG)r9rEr:r:r;rH4sz#BufferedIncrementalDecoder.__init__cCs
t�dS)N)rC)r9rDrErIr:r:r;�_buffer_decode9sz)BufferedIncrementalDecoder._buffer_decodeFcCsB|j|}|j||j|�\}}||d�|_|S)N)rGrUrE)r9rDrIrPrQrRr:r:r;r$>s
z!BufferedIncrementalDecoder.decodecCstj|�d|_dS)NrS)rrJrG)r9r:r:r;rJFs
z BufferedIncrementalDecoder.resetcCs
|jdfS)Nr)rG)r9r:r:r;rKJsz#BufferedIncrementalDecoder.getstatecCs|d|_dS)Nr)rG)r9rLr:r:r;rMNsz#BufferedIncrementalDecoder.setstateN)	rAr=r>rHrUr$rJrKrMr:r:r:r;rT.srTc@syeZdZddd�Zdd�Zdd�Zdd	�Zd
dd�Zed
d�Z	dd�Z
dd�ZdS)rrBcCs||_||_dS)N)�streamrE)r9rVrEr:r:r;rH[s	zStreamWriter.__init__cCs/|j||j�\}}|jj|�dS)N)r#rErV�write)r9�objectrPrRr:r:r;rWtszStreamWriter.writecCs|jdj|��dS)NrF)rW�join)r9�listr:r:r;�
writelines{szStreamWriter.writelinescCsdS)Nr:)r9r:r:r;rJ�s
zStreamWriter.resetrcCs9|jj||�|dkr5|dkr5|j�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|jj�dS)N)rV�close)r9�type�value�tbr:r:r;�__exit__�szStreamWriter.__exit__N)rAr=r>rHrWr[rJr\r_r`rarfr:r:r:r;rYsc@s�eZdZeZddd�Zddd�Zdd ddd	�Zd
ddd
�Zd
ddd�Z	dd�Z
ddd�Zdd�Zdd�Z
edd�Zdd�Zdd�Zd
S)!rrBcCsC||_||_d|_|j�|_|j|_d|_dS)NrS)rVrE�
bytebuffer�charbuffertype�_empty_charbuffer�
charbuffer�
linebuffer)r9rVrEr:r:r;rH�s			zStreamReader.__init__cCs
t�dS)N)rC)r9rDrEr:r:r;r$�szStreamReader.decode�FcCs�|jr*|jj|j�|_d|_xZ|dkrRt|j�|krtPn"|dkrtt|j�|krtP|dkr�|jj�}n|jj|�}|j|}|s�Py|j||j	�\}}Wn�t
k
rY}z`|rD|j|d|j�|j	�\}}|jdd�}	t|	�dkrG�n�WYdd}~XnX||d�|_|j|7_|s-Pq-W|dkr�|j}
|j|_n)|jd|�}
|j|d�|_|
S)Nr�keependsTrl)
rkrirYrj�lenrV�readrgr$rE�UnicodeDecodeError�start�
splitlines)r9�size�chars�	firstline�newdatarP�newchars�decodedbytes�exc�linesrQr:r:r;ro�sF		
(	zStreamReader.readNTc	Csh|jrn|jd}|jd=t|j�dkrN|jd|_d|_|sj|jdd�d}|S|pwd}|j}x�|j|dd�}|r�t|t�r�|jd�s�t|t	�r�|jd	�r�||jd
ddd�7}||7}|jdd�}|rt|�dkr�|d}|d=t|�dkrv|d|j7<||_d|_n|d|j|_|s�|jdd�d}P|d}|djdd�d}||kr|jj
|dd��|j|_|r|}n|}P|s&|dk	rJ|rI|rI|jdd�d}P|dkr�|d
9}q�W|S)NrrlrmF�HruT�
s
rsrti@����)rkrnrjrrriro�
isinstance�str�endswith�bytesrY)	r9rsrm�line�readsizerPrz�line0withend�line0withoutendr:r:r;�readlines^	

		

	

	
zStreamReader.readlinecCs|j�}|j|�S)N)rorr)r9�sizehintrmrPr:r:r;�	readlines[szStreamReader.readlinescCs"d|_|j|_d|_dS)NrS)rgrirjrk)r9r:r:r;rJjs		zStreamReader.resetrcCs!|jj||�|j�dS)N)rVr\rJ)r9r]r^r:r:r;r\wszStreamReader.seekcCs |j�}|r|St�dS)N)r��
StopIteration)r9r�r:r:r;�__next__szStreamReader.__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|jj�dS)N)rVrb)r9rcrdrer:r:r;rf�szStreamReader.__exit__r~r~)rAr=r>r�rhrHr$ror�r�rJr\r�r�r_r`rarfr:r:r:r;r�sNK
c@s�eZdZdZddd�Zd dd�Zdd	d
�Zddd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zddd�Z
edd�Zdd�Zdd�ZdS)!r�unknownrBcCs:||_|||�|_|||�|_||_dS)N)rV�reader�writerrE)r9rV�Reader�WriterrEr:r:r;rH�s
	zStreamReaderWriter.__init__rlcCs|jj|�S)N)r�ro)r9rsr:r:r;ro�szStreamReaderWriter.readNcCs|jj|�S)N)r�r�)r9rsr:r:r;r��szStreamReaderWriter.readlinecCs|jj|�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|jj|�S)N)r�rW)r9rPr:r:r;rW�szStreamReaderWriter.writecCs|jj|�S)N)r�r[)r9rZr:r:r;r[�szStreamReaderWriter.writelinescCs|jj�|jj�dS)N)r�rJr�)r9r:r:r;rJ�s
zStreamReaderWriter.resetrcCsI|jj||�|jj�|dkrE|dkrE|jj�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|jj�dS)N)rVrb)r9rcrdrer:r:r;rf�szStreamReaderWriter.__exit__r~)rAr=r>�encodingrHror�r�r�r�rWr[rJr\r_r`rarfr:r:r:r;r�sc@s�eZdZdZdZddd�Zddd�Zdd	d
�Zddd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
edd�Zdd�Zdd�ZdS)rr�rBcCsL||_||_||_|||�|_|||�|_||_dS)N)rVr#r$r�r�rE)r9rVr#r$r�r�rEr:r:r;rHs			zStreamRecoder.__init__rlcCs1|jj|�}|j||j�\}}|S)N)r�ror#rE)r9rsrP�bytesencodedr:r:r;ro szStreamRecoder.readNcCsO|dkr|jj�}n|jj|�}|j||j�\}}|S)N)r�r�r#rE)r9rsrPr�r:r:r;r�&s
zStreamRecoder.readlinecCs:|jj�}|j||j�\}}|jdd�S)NrmT)r�ror#rErr)r9r�rPr�r:r:r;r�/szStreamRecoder.readlinescCs.t|j�}|j||j�\}}|S)N)r�r�r#rE)r9rPr�r:r:r;r�5szStreamRecoder.__next__cCs|S)Nr:)r9r:r:r;r�<szStreamRecoder.__iter__cCs+|j||j�\}}|jj|�S)N)r$rEr�rW)r9rP�bytesdecodedr:r:r;rW?szStreamRecoder.writecCs:dj|�}|j||j�\}}|jj|�S)NrF)rYr$rEr�rW)r9rZrPr�r:r:r;r[DszStreamRecoder.writelinescCs|jj�|jj�dS)N)r�rJr�)r9r:r:r;rJJs
zStreamRecoder.resetcCs||j|�S)N)rV)r9r3r_r:r:r;r`OszStreamRecoder.__getattr__cCs|S)Nr:)r9r:r:r;raVszStreamRecoder.__enter__cCs|jj�dS)N)rVrb)r9rcrdrer:r:r;rfYszStreamRecoder.__exit__r~)rAr=r>�
data_encoding�
file_encodingrHror�r�r�r�rWr[rJr_r`rarfr:r:r:r;r�s	�rrBrlcCs{|dk	r"d|kr"|d}tj|||�}|dkrG|St|�}t||j|j|�}||_|S)N�b)�builtinsrrrr7r6r�)�filename�moder�rE�	buffering�file�info�srwr:r:r;r^s
	cCsg|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�scCs+t|�j}|dkr't|��|S)N)rr4�LookupError)r��encoderr:r:r;r�s	cCs+t|�j}|dkr't|��|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"�scksat|�||�}x(|D] }|j|�}|r|VqW|jdd�}|r]|VdS)NrFT)rr#)�iteratorr�rE�kwargsr�rD�outputr:r:r;r%�s	
	cksat|�||�}x(|D] }|j|�}|r|VqW|jdd�}|r]|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> s	z&make_identity_dict.<locals>.<dictcomp>r:)�rngr:r:r;�make_identity_dictsr�cCsJi}x=|j�D]/\}}||kr8|||<qd||<qW|S)N)�items)�decoding_map�m�k�vr:r:r;�make_encoding_map"s

r��ignore�replace�xmlcharrefreplace�backslashreplace�namereplace�__main__zlatin-1zutf-8);r��sys�_codecs�ImportError�why�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+I�Wn*&