o
    3IhA                     @   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   s\   t |d}t| D ]
\}}||| qtj| W d   |S 1 s'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contents r   ]/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/importlib_resources/tests/zip.pymake_zip_file
   s   
r    c                 c   sR    |   D ]!\}}t|trt|| | 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
    