HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/test_importlib/__pycache__/update-zips.cpython-311.pyc
�

��Vc���b�dZddlZddlZddlZddlZd�Zd�Zd�Zedkoe��dSdS)z�
Generate the zip test data files.

Run to build the tests/zipdataNN/ziptestdata.zip files from
files in tests/dataNN.

Replaces the file with the working copy, but does commit anything
to the source repo.
�Nc�N�d}ttt|����dS)a;
    >>> from unittest import mock
    >>> monkeypatch = getfixture('monkeypatch')
    >>> monkeypatch.setattr(zipfile, 'ZipFile', mock.MagicMock())
    >>> print(); main()  # print workaround for bpo-32509
    <BLANKLINE>
    ...data01... -> ziptestdata/...
    ...
    ...data02... -> ziptestdata/...
    ...
    )�01�02N)�tuple�map�generate)�suffixess �3D:\Python311\Lib\test\test_importlib\update-zips.py�mainrs'���H�	�#�h��
!�
!�"�"�"�"�"�c���tjt��j�tj����}|d|�d�z}tj|d��5}t|d|��z��D]U\}}dtj
|�����z}t|d|��|�
||���V	ddd��dS#1swxYwYdS)N�zipdataz/ziptestdata.zip�w�data�ziptestdataz->)�pathlib�Path�__file__�parent�relative_to�os�getcwd�zipfile�ZipFile�walk�
PurePosixPath�as_posix�print�write)�suffix�root�zfpath�zf�src�rel�dsts       r
rr!s"���<��!�!�(�4�4�R�Y�[�[�A�A�D�
�6�f�6�6�6�
6�F�	����	%�	%����T�O�6�O�O�3�4�4�	�	�H�C���'�"7������"G�"G�G�C��#�t�S�!�!�!��H�H�S�#�����	���������������������s�!A,C�C�"Cc#�:K�tj|��D]�\}}}tjt��5|�d��ddd��n#1swxYwY|D]4}t
j|��|z}|�|��}||fV��5��dS)N�__pycache__)	rr�
contextlib�suppress�
ValueError�removerrr)�datapath�dirpath�dirnames�	filenames�filename�resr%s       r
rr+s�����(*���(9�(9���$���9�
�
 ��
,�
,�	+�	+��O�O�M�*�*�*�	+�	+�	+�	+�	+�	+�	+�	+�	+�	+�	+����	+�	+�	+�	+�!�	�	�H��,�w�'�'�(�2�C��/�/�(�+�+�C��s�(�N�N�N�N�	��s�A�A	�A	�__main__)	�__doc__r)rrrrrr�__name__�rr
�<module>r7s���������	�	�	�	���������
#�
#�
#� ������	�J��!�4�4�6�6�6�6�6�!�!�!r