
    ZiA                     (    d Z ddlZddlZd ZddZdS )z
Generate zip test data files.
    Nc                     t          j        |d          5 }t          |           D ]\  }}|                    ||           t          j                            |           ddd           n# 1 swxY w Y   |S )z:
    Zip the files in tree into a new zipfile at dst.
    wN)zipfileZipFilewalkwritestrzippCompleteDirsinject)treedstzfnamecontentss        X/root/projects/butler/venv/lib/python3.11/site-packages/importlib_resources/tests/zip.pymake_zip_filer   
   s     
c	"	" %b"4jj 	( 	(ND(KKh''''  $$$% % % % % % % % % % % % % % % Js   AA--A14A1 c              #      K   |                                  D ]A\  }}t          |t                    rt          || | d          E d {V  7| | |fV  Bd S )N/)prefix)items
isinstancedictr   )r   r   r   r   s       r   r   r      s      **,, . .hh%% 	.H-?-?-?-?@@@@@@@@@@@#T##X-----	. .    )r   )__doc__r   r	   r   r    r   r   <module>r      sP        . . . . . .r   