AlkantarClanX12

Your IP : 3.142.98.60


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

3


 \	�@sxdZddlZddlZejZddd�ZGdd�dej�ZGdd	�d	ej�ZGd
d�dej	�Z	Gdd
�d
ej
�Z
dd�ZdS)z
Python 'utf-32' Codec
�N�strictcCstj||d�S)NT)�codecs�
utf_32_decode)�input�errors�r�(/usr/lib64/python3.6/encodings/utf_32.py�decode
sr	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_32_encoder�sys�	byteorder�utf_32_le_encode�utf_32_be_encode)r
r�final�resultrrr�encodes


zIncrementalEncoder.encodecCstjj|�d|_dS)N)rr
�resetr)r
rrrrs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
rrrrr1szIncrementalDecoder.__init__cCsl|jdkr\tj||d|�\}}}|dkr2tj|_n"|dkrDtj|_n|dkrTtd��||fS|j||j|�S)Nr��z%UTF-32 stream does not start with BOM���)r!r�utf_32_ex_decode�utf_32_le_decode�utf_32_be_decode�UnicodeErrorr)r
rrr�output�consumedrrrr�_buffer_decode5s


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

zIncrementalDecoder.getstatecCsdtjj||�|d}|dkr8tjdkr.tjntj|_n(|dkrZtjdkrPtjntj|_nd|_dS)Nr"rr,)rr rrrr'r&r!)r
rrrrrTs

zIncrementalDecoder.setstateN)r)rrrrr+rrrrrrrr0s


rc@s(eZdZd	dd�Zdd�Zd
dd�ZdS)�StreamWriterrcCsd|_tjj|||�dS)N)rrr.r)r
�streamrrrrrdszStreamWriter.__init__cCstjj|�d|_dS)N)rr.rr)r
rrrrhszStreamWriter.resetcCsF|jdkr6tj||�}tjdkr*tj|_ntj|_|S|j||�SdS)Nr)rrrrrrr)r
rrrrrrrls


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

zStreamReader.decodeN)r)rrrrr	rrrrr0wsr0c	Cstjdttttttd�S)Nzutf-32)�namerr	�incrementalencoder�incrementaldecoder�streamreader�streamwriter)r�	CodecInforr	r
rr0r.rrrr�getregentry�sr9)r)�__doc__rrrrr	r
r rr.r0r9rrrr�<module>s
#3