o
    Nrf                     @  sZ   d dl mZ d dlZd dlZd dlZd dlZd dlZdd Zejejdd ejedZdS )    )annotationsNc              	   C  s~   t  }tj|dd#}|dd}||  W d   n1 s"w   Y  W d   n1 s1w   Y  |d | S )z,Write data into zipfile and return the bytesw)filemodeZmyfileNr   )ioBytesIOzipfileZipFileopenwriteseekread)dataoutzzf r   Y/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/dask/bytes/utils.pyzip_compress
   s   
r   c                 C  s   | S )Nr   )xr   r   r   <lambda>   s    r   )gzipbz2Nxzzip)	
__future__r   r   r   r   lzmar   r   compressr   r   r   r   <module>   s    
