AlkantarClanX12

Your IP : 3.135.190.244


Current Path : /usr/lib64/python3.6/encodings/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/encodings/__pycache__/utf_16.cpython-36.opt-2.pyc

3


 \t�@stddlZddlZejZddd�ZGdd�dej�ZGdd�dej�ZGd	d
�d
ej�ZGdd�dej	�Z	d
d�Z
dS)�N�strictcCstj||d�S)NT)�codecs�
utf_16_decode)�input�errors�r�(/usr/lib64/python3.6/encodings/utf_16.py�decodesr	c@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�IncrementalEncoderrcCstjj||�d|_dS)N)rr
�__init__�encoder)�selfrrrrrszIncrementalEncoder.__init__FcCsN|jdkr<tj||j�d}tjdkr0tj|_ntj|_|S|j||j�dS)Nr�little)rr�
utf_16_encoder�sys�	byteorder�utf_16_le_encode�utf_16_be_encode)r
r�final�resultrrr�encodes


zIncrementalEncoder.encodecCstjj|�d|_dS)N)rr
�resetr)r
rrrr!szIncrementalEncoder.resetcCs|jdkrdSdS)N�r)r)r
rrr�getstate%szIncrementalEncoder.getstatecCs,|rd|_ntjdkr tj|_ntj|_dS)Nr)rrrrrr)r
�staterrr�setstate,s


zIncrementalEncoder.setstateN)r)F)�__name__�
__module__�__qualname__rrrrrrrrrr
s



r
c@s6eZdZd
dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�IncrementalDecoderrcCstjj||�d|_dS)N)r�BufferedIncrementalDecoderr�decoder)r
rrrrr6szIncrementalDecoder.__init__cCsl|jdkr\tj||d|�\}}}|dkr2tj|_n"|dkrDtj|_n|dkrTtd��||fS|j||j|�S)Nr�rz%UTF-16 stream does not start with BOM���)r!r�utf_16_ex_decode�utf_16_le_decode�utf_16_be_decode�UnicodeErrorr)r
rrr�output�consumedrrrr�_buffer_decode:s


z!IncrementalDecoder._buffer_decodecCstjj|�d|_dS)N)rr rr!)r
rrrrGszIncrementalDecoder.resetcCsDtjj|�d}|jdkr"|dfSttjdk|jtjkk�}||fS)Nrr�big)rr rr!�intrrr&)r
rZaddstaterrrrKs

zIncrementalDecoder.getstatecCsdtjj||�|d}|dkr8tjdkr.tjntj|_n(|dkrZtjdkrPtjntj|_nd|_dS)Nr"rr+)rr rrrr&r%r!)r
rrrrrYs

zIncrementalDecoder.setstateN)r)rrrrr*rrrrrrrr5s


rc@s(eZdZd	dd�Zdd�Zd
dd�ZdS)�StreamWriterrcCstjj|||�d|_dS)N)rr-rr)r
�streamrrrrriszStreamWriter.__init__cCstjj|�d|_dS)N)rr-rr)r
rrrrmszStreamWriter.resetcCsF|jdkr6tj||�}tjdkr*tj|_ntj|_|S|j||�SdS)Nr)rrrrrrr)r
rrrrrrrqs


zStreamWriter.encodeN)r)r)rrrrrrrrrrr-hs
r-c@seZdZdd�Zddd�ZdS)�StreamReadercCs.tjj|�y|`Wntk
r(YnXdS)N)rr/rr	�AttributeError)r
rrrr~s
zStreamReader.resetrcCsRtj||dd�\}}}|dkr(tj|_n"|dkr:tj|_n|dkrJtd��||fS)NrFr"rz%UTF-16 stream does not start with BOMr#)rr$r%r	r&r')r
rr�objectr)rrrrr	�s

zStreamReader.decodeN)r)rrrrr	rrrrr/|sr/c	Cstjdttttttd�S)Nzutf-16)�namerr	�incrementalencoder�incrementaldecoder�streamreader�streamwriter)r�	CodecInforr	r
rr/r-rrrr�getregentry�sr8)r)rrrrr	r
r rr-r/r8rrrr�<module>	s
#3