U
    ?hA                     @   s*   d Z ddlZddlZdd ZdddZdS )	z
Generate zip test data files.
    Nc              	   C   sF   t |d0}t| D ]\}}||| qtj| W 5 Q R X |S )z:
    Zip the files in tree into a new zipfile at dst.
    w)zipfileZipFilewalkwritestrzippCompleteDirsZinject)treedstzfnamecontents r   O/var/www/html/venv/lib/python3.8/site-packages/importlib_resources/tests/zip.pymake_zip_file
   s
    r    c                 c   sP   |   D ]B\}}t|tr8t|| | ddE d H  q| | |fV  qd S )N/)prefix)items
isinstancedictr   )r	   r   r   r   r   r   r   r      s    
r   )r   )__doc__r   r   r   r   r   r   r   r   <module>   s   