
    Xh                     b    d Z ddlZddlZddlZddlmZ  G d dej                        Zd Zd Zy)zc
This module is here to ensure compatibility of Windows/Linux/MacOS and
different Python versions.
    N)Anyc                   ,     e Zd Zdededef fdZ xZS )	Unpicklermodulenamereturnc                 2    |dk(  rd}t         |   ||      S )Nzpathlib._localpathlib)super
find_class)selfr   r   	__class__s      G/var/www/html/myenv/lib/python3.12/site-packages/jedi/_compatibility.pyr   zUnpickler.find_class   s%     %%Fw!&$//    )__name__
__module____qualname__strr   r   __classcell__)r   s   @r   r   r      s"    0 0C 0C 0 0r   r   c                     	 t        |       j                         S # t        $ r t        j                  dk(  r
t                w xY w)Nwin32)r   loadOSErrorsysplatformEOFError)files    r   pickle_loadr      sB    ##%%  <<7"*s	    (Ac                     	 t        j                  | ||       |j                          y # t        $ r/ t        j
                  dk(  rt        t        j                  d       w xY w)Nr   zBroken pipe)	pickledumpflushr   r   r   IOErrorerrnoEPIPE)datar   protocols      r   pickle_dumpr(   "   sS    
D$) 	

  <<7"%++}55s	   '* 8A")	__doc__r$   r   r    typingr   r   r   r(    r   r   <module>r,      s4     
  	0   	0r   