
    .Ph#                    ~    d Z ddlmZ ddlmZmZ ddlmZ ddlm	Z	  G d de          Z
 G d d	e          Zdd	gZd
S )z&Application data stored by virtualenv.    )annotations)ABCabstractmethod)contextmanager)	IS_ZIPAPPc                  <   e Zd ZdZed             Zed             Zed             Zed             Ze	d             Z
ed             Ze	d             Ze	d	             Zed
             Zedd            Zeed                         Zeed                         ZdS )AppDataz:Abstract storage interface for the virtualenv application.c                    dS )zCalled before virtualenv exits.N selfs    X/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/virtualenv/app_data/base.pyclosezAppData.close             c                    dS )z2Called when the user passes in the reset app data.Nr   r   s    r   resetzAppData.reset   r   r   c                    t           NNotImplementedErrorr   paths     r   py_infozAppData.py_info       !!r   c                    t           r   r   r   s    r   py_info_clearzAppData.py_info_clear   r   r   c                    t           r   r   r   s    r   
can_updatezAppData.can_update   r   r   c                    t           r   r   )r   distributionfor_py_versions      r   embed_update_logzAppData.embed_update_log"   r   r   c                    t           r   r   r   s    r   housezAppData.house&   r   r   c                    t           r   r   r   s    r   	transientzAppData.transient*   r   r   c                    t           r   r   )r   r"   names      r   wheel_imagezAppData.wheel_image.   r   r   Nc              #     K   t           r5|                     ||          5 }|V  ddd           dS # 1 swxY w Y   dS |V  dS )zISome paths might be within the zipapp, unzip these to a path on the disk.N)r   extract)r   r   	to_folderresults       r   ensure_extractedzAppData.ensure_extracted2   s        	dI.. &                  JJJJJs   266c                    t           r   r   )r   r   r-   s      r   r,   zAppData.extract;   
     "!r   c                    t           r   r   r   s     r   lockedzAppData.locked@   r1   r   r   )__name__
__module____qualname____doc__r   r   r   r   r   propertyr   r#   r%   r'   r*   r   r/   r,   r3   r   r   r   r	   r	      sx       DD. . ^. A A ^A " " ^" " " ^" " " X" " " ^" " " X" " " X" " " ^"    ^ " " ^ ^" " " ^ ^" " "r   r	   c                      e Zd Zed             Zed             Zed             Zed             Zeed                         Z	dS )ContentStorec                    t           r   r   r   s    r   existszContentStore.existsG   r   r   c                    t           r   r   r   s    r   readzContentStore.readK   r   r   c                    t           r   r   )r   contents     r   writezContentStore.writeO   r   r   c                    t           r   r   r   s    r   removezContentStore.removeS   r   r   c                    d S r   r   r   s    r   r3   zContentStore.lockedW   s	     	r   N)
r4   r5   r6   r   r<   r>   rA   rC   r   r3   r   r   r   r:   r:   F   s        " " ^" " " ^" " " ^" " " ^"   ^ ^  r   r:   N)r7   
__future__r   abcr   r   
contextlibr   virtualenv.infor   r	   r:   __all__r   r   r   <module>rJ      s    , , " " " " " " # # # # # # # # % % % % % % % % % % % %8" 8" 8" 8" 8"c 8" 8" 8"v    3   0 r   