add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
3

�
�^	c@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)�codecsZ
utf_32_decode)�input�errors�r�(/usr/lib64/python3.6/encodings/utf_32.py�decode
src@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�IncrementalEncoderrcC�tjj||�d|_dS�N)rr�__init__�encoder��selfrrrrr�zIncrementalEncoder.__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)rr�final�resultrrr�encodes


zIncrementalEncoder.encodecC�tjj|�d|_dSr
)rr�resetr�rrrrr�zIncrementalEncoder.resetcCs|jdkrdSdS)N�r)rrrrr�getstate szIncrementalEncoder.getstatecCs,|rd|_ntjdkr tj|_ntj|_dS�Nr)rrrrrr�r�staterrr�setstate's


zIncrementalEncoder.setstateN�r)F)�__name__�
__module__�__qualname__rrrrr"rrrrr
s



rc@s6eZdZd
dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�IncrementalDecoderrcCr	r
)r�BufferedIncrementalDecoderr�decoderr
rrrr1rzIncrementalDecoder.__init__cCsl|jdkr\tj||d|�\}}}|dkr2tj|_n"|dkrDtj|_n|dkrTtd��||fS|j||j|�S)Nr���%UTF-32 stream does not start with BOM�����)r)r�utf_32_ex_decode�utf_32_le_decode�utf_32_be_decode�UnicodeErrorr)rrrrZoutput�consumedrrrr�_buffer_decode5s


z!IncrementalDecoder._buffer_decodecCrr
)rr(rr)rrrrrBrzIncrementalDecoder.resetcCsDtjj|�d}|jdkr"|dfSttjdk|jtjkk�}||fS)Nrr�big)rr(rr)Zintrrr0)rr!ZaddstaterrrrFs

zIncrementalDecoder.getstatecCsdtjj||�|d}|dkr8tjdkr.tjntj|_n(|dkrZtjdkrPtjntj|_nd|_dS)Nr*rr4)rr(r"rrr0r/r)r rrrr"Ts

zIncrementalDecoder.setstateNr#)r$r%r&rr3rrr"rrrrr'0s


r'c@s(eZdZd	dd�Zdd�Zd
dd�ZdS)�StreamWriterrcCsd|_tjj|||�dSr
)rrr5r)rZstreamrrrrrdszStreamWriter.__init__cCrr
)rr5rrrrrrrhrzStreamWriter.resetcCsF|jdkr6tj||�}tjdkr*tj|_ntj|_|S|j||�SdSr)rrrrrrr)rrrrrrrrls


zStreamWriter.encodeNr#r#)r$r%r&rrrrrrrr5cs
r5c@seZdZdd�Zddd�ZdS)�StreamReadercCs.tjj|�y|`Wntk
r(YnXdSr
)rr6rrZAttributeErrorrrrrrys
zStreamReader.resetrcCsRtj||dd�\}}}|dkr(tj|_n"|dkr:tj|_n|dkrJtd��||fS)NrFr*r+r,r-)rr.r/rr0r1)rrrZobjectr2rrrrr�s

zStreamReader.decodeNr#)r$r%r&rrrrrrr6wsr6c	Cstjdttttttd�S)Nzutf-32)ZnamerrZincrementalencoderZincrementaldecoderZstreamreaderZstreamwriter)rZ	CodecInforrrr'r6r5rrrr�getregentry�sr7r#)Z__doc__rrrrrrr(r'r5r6r7rrrrZ<module>s
#3