B
    œúðb–  ã               @   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   s6   y
t  | ¡S  tk
r0   tjdkr*tƒ ‚‚ Y nX d S )NÚwin32)ÚpickleÚloadÚOSErrorÚsysÚplatformÚEOFError)Úfile© r
   ú2lib/python3.7/site-packages/jedi/_compatibility.pyÚpickle_load
   s    

r   c             C   sL   y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ÚerrnoZEPIPE)Údatar	   Zprotocolr
   r
   r   Úpickle_dump   s    
r   )Ú__doc__r   r   r   r   r   r
   r
   r
   r   Ú<module>   s
   