add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
f

��_%c@stdZddlZddd�Zddd�ZGdd	�d	ej�ZGd
d�dej�ZGdd
�d
ej�ZGdd�dej�Zdd�Z	dS)a Python 'utf-8-sig' Codec
This work similar to UTF-8 with the following changes:

* On encoding/writing a UTF-8 encoded BOM will be prepended/written as the
  first three bytes.

* On decoding/reading if the first three bytes are a UTF-8 encoded BOM, these
  bytes will be skipped.
�N�strictcCstjt�||�dt|�fS�Nr)�codecs�BOM_UTF8�utf_8_encode�len)�input�errors�r	�,/usr/lib64/python3.10/encodings/utf_8_sig.py�encodes�rcCsDd}|dd�tjkr&|dd�}d}t�||d�\}}|||fS)Nr�T)rr�utf_8_decode)rrZprefix�output�consumedr	r	r
�decodesrc@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�IncrementalEncoderrcC�tj�||�d|_dS�Ni)rr�__init__�first��selfrr	r	r
r�zIncrementalEncoder.__init__FcCs6|jr$d|_tjt�||j�dSt�||j�dSr)rrrrr)rr�finalr	r	r
rs�zIncrementalEncoder.encodecC�tj�|�d|_dSr)rr�resetr�rr	r	r
r'�zIncrementalEncoder.resetcCs|jS�N�rrr	r	r
�getstate+�zIncrementalEncoder.getstatecCs
||_dSrr�rZstater	r	r
�setstate.r!zIncrementalEncoder.setstateN�r)F)�__name__�
__module__�__qualname__rrrr r#r	r	r	r
rs


rc@s6eZdZd
dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�IncrementalDecoderrcCrr)r�BufferedIncrementalDecoderrrrr	r	r
r2rzIncrementalDecoder.__init__cCsv|jrht|�dkr*tj�|�r"dSd|_n>d|_|dd�tjkrht�|dd�||�\}}||dfSt�|||�S)Nr�Zrr)rrrr�
startswithr
)rrrrrrr	r	r
�_buffer_decode6s�z!IncrementalDecoder._buffer_decodecCrr)rr)rrrr	r	r
rGrzIncrementalDecoder.resetcCstj�|�}|d|jfSr)rr)r rr"r	r	r
r KszIncrementalDecoder.getstatecCstj�||�|d|_dSr)rr)r#rr"r	r	r
r#PszIncrementalDecoder.setstateNr$)r%r&r'rr,rr r#r	r	r	r
r(1s

r(c@�eZdZdd�Zddd�ZdS)�StreamWritercC�,tj�|�z|`Wnty&Yn0dSr)rr.rr�AttributeErrorrr	r	r
rV�
zStreamWriter.resetrcCstj|_t||�Sr)rrr)rrrr	r	r
r]szStreamWriter.encodeNr$)r%r&r'rrr	r	r	r
r.U�r.c@r-)�StreamReadercCr/r)rr3rrr0rr	r	r
rbr1zStreamReader.resetrcCsnt|�dkrtj�|�rZdS|dd�tjkrZtj|_t�|dd�|�\}}||dfStj|_t�||�S)Nrr*)rrrr+r
r)rrrrrr	r	r
riszStreamReader.decodeNr$)r%r&r'rrr	r	r	r
r3ar2r3c	Cstjdttttttd�S)Nz	utf-8-sig)ZnamerrZincrementalencoderZincrementaldecoderZstreamreaderZstreamwriter)rZ	CodecInforrrr(r3r.r	r	r	r
�getregentryys�r4r$r$)
Z__doc__rrrrr)r(r.r3r4r	r	r	r
Z<module>s	

$