
    @gA                     &    d Z ddlZddlZd ZddZy)z
Generate zip test data files.
    Nc                     t        j                  |d      5 }t        |       D ]  \  }}|j                  ||        t        j
                  j                  |       ddd       |S # 1 sw Y   |S xY w)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        R/var/www/openai/venv/lib/python3.12/site-packages/importlib_resources/tests/zip.pymake_zip_filer   
   sa     
c	"b"4jND(KKh' )  $ 
# J	 
# Js   AA&&A0c              #      K   | j                         D ]:  \  }}t        |t              rt        || | d      E d {    1| | |f < y 7 w)N/)prefix)items
isinstancedictr   )r   r   r   r   s       r   r   r      sV     **,hh%HxvQ-?@@@HTF#X--	 '@s   <AAA) )__doc__r   r	   r   r        r   <module>r      s     .r   