U
    /e                     @   sN   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 )    Nc              
   C   sV   t  }tj|dd(}|dd}||  W 5 Q R X W 5 Q R X |d | S )z,Write data into zipfile and return the bytesw)filemodeZmyfiler   )ioBytesIOzipfileZipFileopenwriteseekread)dataoutzzf r   4/tmp/pip-unpacked-wheel-dbjnr7gq/dask/bytes/utils.pyzip_compress   s    
r   c                 C   s   | S )Nr   )xr   r   r   <lambda>       r   )gzipbz2Nxzzip)r   r   r   lzmar   r   compressr   r   r   r   <module>   s   