AlkantarClanX12

Your IP : 3.22.77.191


Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/encodings/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/encodings/__pycache__/utf_16.cpython-33.pyo

�
��fsc@s�dZddlZddlZejZddd�ZGdd�dej�ZGdd	�d	ej�ZGd
d�dej	�Z	Gdd
�d
ej
�Z
dd�ZdS(u� Python 'utf-16' Codec


Written by Marc-Andre Lemburg (mal@lemburg.com).

(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

iNustrictcCstj||d�S(NT(ucodecsu
utf_16_decodeuTrue(uinputuerrors((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyudecodesudecodecBsV|EeZdZddd�Zd
dd�Zdd�Zdd	�Zd
d�ZdS(uIncrementalEncoderustrictcCs tjj||�d|_dS(N(ucodecsuIncrementalEncoderu__init__uNoneuencoder(uselfuerrors((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu__init__suIncrementalEncoder.__init__cCsm|jdkrVtj||j�d}tjdkrFtj|_ntj|_|S|j||j�dS(Niulittle(	uencoderuNoneucodecsu
utf_16_encodeuerrorsusysu	byteorderuutf_16_le_encodeuutf_16_be_encode(uselfuinputufinaluresult((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuencodesuIncrementalEncoder.encodecCstjj|�d|_dS(N(ucodecsuIncrementalEncoderuresetuNoneuencoder(uself((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyureset!suIncrementalEncoder.resetcCs|jdkrdSdS(Nii(uencoderuNone(uself((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyugetstate%suIncrementalEncoder.getstatecCs@|rd|_n*tjdkr0tj|_ntj|_dS(Nulittle(uNoneuencoderusysu	byteorderucodecsuutf_16_le_encodeuutf_16_be_encode(uselfustate((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyusetstate,s
uIncrementalEncoder.setstateNF(	u__name__u
__module__u__qualname__u__init__uFalseuencodeuresetugetstateusetstate(u
__locals__((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuIncrementalEncoders

uIncrementalEncodercBsS|EeZdZddd�Zdd�Zdd�Zdd	�Zd
d�ZdS(
uIncrementalDecoderustrictcCs tjj||�d|_dS(N(ucodecsuBufferedIncrementalDecoderu__init__uNoneudecoder(uselfuerrors((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu__init__6suIncrementalDecoder.__init__cCs�|jdkr�tj||d|�\}}}|dkrKtj|_n6|dkrftj|_n|dkr�td��n||fS|j||j|�S(Niiiu%UTF-16 stream does not start with BOMi����(udecoderuNoneucodecsuutf_16_ex_decodeuutf_16_le_decodeuutf_16_be_decodeuUnicodeErroruerrors(uselfuinputuerrorsufinaluoutputuconsumedu	byteorder((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu_buffer_decode:s!
u!IncrementalDecoder._buffer_decodecCstjj|�d|_dS(N(ucodecsuBufferedIncrementalDecoderuresetuNoneudecoder(uself((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuresetGsuIncrementalDecoder.resetcCs`tjj|�d}|jdkr/|dfSttjdk|jtjkk�}||fS(Niiubig(	ucodecsuBufferedIncrementalDecoderugetstateudecoderuNoneuintusysu	byteorderuutf_16_be_decode(uselfustateuaddstate((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyugetstateKs
uIncrementalDecoder.getstatecCs�tjj||�|d}|dkrPtjdkrAtjntj|_n<|dkr�tjdkrttjntj|_n	d|_dS(Niiubig(	ucodecsuBufferedIncrementalDecoderusetstateusysu	byteorderuutf_16_be_decodeuutf_16_le_decodeudecoderuNone(uselfustate((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyusetstateYs
uIncrementalDecoder.setstateN(u__name__u
__module__u__qualname__u__init__u_buffer_decodeuresetugetstateusetstate(u
__locals__((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuIncrementalDecoder5s

uIncrementalDecodercBs>|EeZdZddd�Zdd�Zddd�ZdS(	uStreamWriterustrictcCs#tjj|||�d|_dS(N(ucodecsuStreamWriteru__init__uNoneuencoder(uselfustreamuerrors((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu__init__isuStreamWriter.__init__cCstjj|�d|_dS(N(ucodecsuStreamWriteruresetuNoneuencoder(uself((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuresetmsuStreamWriter.resetcCsc|jdkrOtj||�}tjdkr?tj|_ntj|_|S|j||�SdS(Nulittle(uencoderuNoneucodecsu
utf_16_encodeusysu	byteorderuutf_16_le_encodeuutf_16_be_encode(uselfuinputuerrorsuresult((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuencodeqsuStreamWriter.encodeN(u__name__u
__module__u__qualname__u__init__uresetuencode(u
__locals__((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuStreamWriterhsuStreamWritercBs/|EeZdZdd�Zddd�ZdS(uStreamReadercCs3tjj|�y
|`Wntk
r.YnXdS(N(ucodecsuStreamReaderuresetudecodeuAttributeError(uself((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyureset~s


uStreamReader.resetustrictcCs|tj||dd�\}}}|dkr<tj|_n6|dkrWtj|_n|dkrrtd��n||fS(Niiiu%UTF-16 stream does not start with BOMFi����(ucodecsuutf_16_ex_decodeuFalseuutf_16_le_decodeudecodeuutf_16_be_decodeuUnicodeError(uselfuinputuerrorsuobjectuconsumedu	byteorder((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyudecode�s!uStreamReader.decodeN(u__name__u
__module__u__qualname__uresetudecode(u
__locals__((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyuStreamReader|suStreamReadercCs4tjdddtdtdtdtdtdt�S(	Nunameuutf-16uencodeudecodeuincrementalencoderuincrementaldecoderustreamreaderustreamwriter(ucodecsu	CodecInfouencodeudecodeuIncrementalEncoderuIncrementalDecoderuStreamReaderuStreamWriter(((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyugetregentry�s	ugetregentry(u__doc__ucodecsusysu
utf_16_encodeuencodeudecodeuIncrementalEncoderuBufferedIncrementalDecoderuIncrementalDecoderuStreamWriteruStreamReaderugetregentry(((u5/opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu<module>s	#3