add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
�

�Wc�
cs��ddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
eejefZeZd�Zd�Zededed	e	fd
��Zededed	efd��Ze		ddedededed	e
f
d��Ze		ddedededed	ef
d��Zeded	eefd��Zededed	efd��Zededed	eej8fd��ZdS)iN)�Union�Iterable�ContextManager�BinaryIO�TextIO�Anyi)�_commoncsH��tj���fd��}|S)Ncsl��tj�j�d�td���|i|��S)Nz� is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.i)Z
stacklevel)�warningsZwarnZ__name__ZDeprecationWarning)ZargsZkwargs�func�  ��4/usr/lib64/python3.12/importlib/resources/_legacy.py�wrapperzdeprecated.<locals>.wrappersQ����
�
��}�}�
P�
P�
P�
��	
�	
�	
��t�T�$�V�$�$�$�)�	functoolsZwraps)rrs` r
�
deprecatedrs4����_�_�T��%�%�%�%��%��Nrcs��t|�}tjj|�\}}|rt	|�d���|S)z�Normalize a path by ensuring it is a string.

    If the resulting string contains path separators, an exception is raised.
    z must be only a file name)�str�os�pathZsplitZ
ValueError)rZstr_pathZparentZ	file_name�    r
�normalize_pathrsC���4�y�H����
�
�h�/��F�I�
�v��D�=�=�=�>�>��r�package�resourceZreturncsl�tj|�t|�zjd�S)zDReturn a file-like object opened for binary reading of the resource.Zrb�r�filesrZopen�rr�  r
�open_binaryr+s(��
�M�M�'�"�^�H�%=�=�C�C�D�I�Ircsj�tj|�t|�zj�S)z+Return the binary contents of the resource.)rrrZ
read_bytesrrr
�read_binaryr1s&��
�M�M�'�"�^�H�%=�=�I�I�K�Kr�utf-8�strict�encoding�errorscsr�tj|�t|�zjd||��S)zBReturn a file-like object opened for text reading of the resource.Zr)rrr)rrrrrr
�	open_textr 7s7��
�M�M�'�"�^�H�%=�=�C�C��h�v�D��rcst�t||||�5}|j�cddd�S#1swYdSxYw)z�Return the decoded string of the resource.

    The decoding-related arguments have the same semantics as those of
    bytes.decode().
    N)r Zread)rrrrZfps     r
�	read_textr!Dsz��
�7�H�h��	7��2��w�w�y��������������������s�-�7cs^�d�tj|�j�D�S)z�Return an iterable of entries in `package`.

    Note that not all entries are resources.  Specifically, directories are
    not considered resources.  Use `is_resource()` on each entry returned here
    to check if it is a resource or not.
    cs(�g|]}|j��S�)�name)�.0rrr
z
<listcomp>zcontents.<locals>.<listcomp>\s��C�C�C�$�D�I�I�I�I�Cr)rr�iterdir)rs r
�contentsr&Ts(��D�C�'�-�-��"8�"@�"@�"B�C�C�Crr#cs���t|��t�fd�tj|�j	�D��S)zYTrue if `name` is a resource inside `package`.

    Directories are *not* resources.
    c3s\�K�|]%}|j�ko|j����'dS)N)r#Zis_file)r$Ztraversablerr	r
z	<genexpr>zis_resource.<locals>.<genexpr>fsH��������	���H�$�>��)<�)<�)>�>�>�>�>��r)rZanyrrr%)rr#rs  @r
�is_resourcer'_sO����d�#�H������"�=�=��1�9�9�;����rcsv�tjtj|�t|�z�S)akA context manager providing a file path object to the resource.

    If the resource does not already exist on its own on the file system,
    a temporary file will be created. If the file was created, the file
    will be deleted upon exiting the context manager (no exception is
    raised if the file was deleted prior to the context manager
    exiting).
    )rZas_filerrrrr
rrls&���?�?�7�=�=��1�N�8�4L�L�M�Mr)rr)r
rZpathlibZtypesrZtypingrrrrrrZrZ
ModuleTyperZPackageZResourcerrrZbytesrr r!r&Zboolr'ZPathrr"rr
�<module>r(s�������	�	�	�	�������������I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�I�������
�� � �#�%�
&�������
�
�
��J��J�H�J��J�J�J��J�
�L��L�H�L��L�L�L��L�
���		�	�
�	��	��	�
�		�
�	�	�	��	����	��
������
�	�
	�������D�g�D�(�3�-�D�D�D��D��	��	��	��	�	�	��	��N�
�N��N��G�L�L�!�N�N�N��N�N�Nr