add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
a

Z��^#c@s�ddlZddlZddlmZddd�Zddd	�ZGd
d�dej�ZGdd
�d
ej�ZGdd�dej�ZGdd�deej	�Z	Gdd�deej
�Z
dd�ZdS)�N)�BytesIO�strict�<data>�c	Cs�t|�}t�}|j}|j}|�dd�}|�dd�}|d|d@|f�d��|d�}|rp|t�|��|d�}qT|d	�|��t|�fS)
NZ
z\nz
z\rzbegin %o %s
i�Zasciii-s 
end
)	r�read�writeZreplace�encode�binasciiZb2a_uu�getvalue�len)	�input�errorsZfilenameZmode�infile�outfilerrZchunk�r�*/usr/lib64/python3.9/encodings/uu_codec.py�	uu_encodes
rc

Cs�t|�}t�}|j}|j}|�}|s,td��|dd�dkrq@q|�}|r�|dkrTq�zt�|�}WnTtjy�}z:|ddd@ddd	}	t�|d|	��}WYd}~n
d}~00||�q@|s�td
��|��t|�fS)Nz"Missing "begin" line in input dataisbeginsend
ri i?iizTruncated input data)	r�readlinerZ
ValueErrorrZa2b_uuZErrorr	r
)
rrr
rrrZsZdataZvZnbytesrrr�	uu_decode%s*(
rc@s eZdZddd�Zddd�ZdS)	�CodecrcC�
t||�S�N)r��selfrrrrrrG�zCodec.encodecCrr)rrrrr�decodeJrzCodec.decodeN�rr)�__name__�
__module__�__qualname__rrrrrrrFs
rc@�eZdZddd�ZdS)�IncrementalEncoderFcC�t||j�dS�Nr)rr�rrZfinalrrrrNrzIncrementalEncoder.encodeN�F)rrrrrrrrr M�r c@r)�IncrementalDecoderFcCr!r")rrr#rrrrRrzIncrementalDecoder.decodeNr$)rrrrrrrrr&Qr%r&c@�eZdZeZdS)�StreamWriterN�rrrZbytesZcharbuffertyperrrrr(Ur%r(c@r')�StreamReaderNr)rrrrr*Xr%r*c
Cstjdttttttdd�S)NZuuF)ZnamerrZincrementalencoderZincrementaldecoderZstreamreaderZstreamwriterZ_is_text_encoding)�codecsZ	CodecInforrr r&r*r(rrrr�getregentry]s�r,)rrrr)r+rZiorrrrr r&r(r*r,rrrrZ<module>
s

!