U
    nuf–  ã                   @   s0   d Z ddlZddlZddlZdd„ Zdd„ ZdS )zc
This module is here to ensure compatibility of Windows/Linux/MacOS and
different Python versions.
é    Nc                 C   s8   zt  | ¡W S  tk
r2   tjdkr,tƒ ‚‚ Y nX d S )NÚwin32)ÚpickleÚloadÚOSErrorÚsysÚplatformÚEOFError)Úfile© r
   ú7/tmp/pip-unpacked-wheel-ol4ehs9f/jedi/_compatibility.pyÚpickle_load
   s    
r   c                 C   sL   zt  | ||¡ | ¡  W n, tk
rF   tjdkr@ttjdƒ‚‚ Y nX d S )Nr   zBroken pipe)	r   ÚdumpÚflushr   r   r   ÚIOErrorÚerrnoÚEPIPE)Údatar	   Úprotocolr
   r
   r   Úpickle_dump   s    
r   )Ú__doc__r   r   r   r   r   r
   r
   r
   r   Ú<module>   s
   