Viewing File: /opt/hc_python/lib/python3.12/site-packages/virtualenv/app_data/__pycache__/base.cpython-312.pyc

�

`��g#��p�dZddlmZddlmZmZddlmZddlm	Z	Gd�de�Z
Gd�d	e�Zdd	gZy
)z&Application data stored by virtualenv.�)�annotations)�ABC�abstractmethod)�contextmanager)�	IS_ZIPAPPc���eZdZdZed��Zed��Zed��Zed��Ze	d��Z
ed��Ze	d��Ze	d	��Z
ed
��Zedd��Zeed
���Zeed���Zy)�AppDataz:Abstract storage interface for the virtualenv application.c��y)zCalled before virtualenv exits.N���selfs �G/opt/hc_python/lib/python3.12/site-packages/virtualenv/app_data/base.py�closez
AppData.close���c��y)z2Called when the user passes in the reset app data.Nrrs r�resetz
AppData.resetrrc��t��N��NotImplementedError�r
�paths  r�py_infozAppData.py_info���!�!rc��t�rrrs r�
py_info_clearzAppData.py_info_clearrrc��t�rrrs r�
can_updatezAppData.can_updaterrc��t�rr)r
�distribution�for_py_versions   r�embed_update_logzAppData.embed_update_log"rrc��t�rrrs r�housez
AppData.house&rrc��t�rrrs r�	transientzAppData.transient*rrc��t�rr)r
r"�names   r�wheel_imagezAppData.wheel_image.rrNc#�xK�tr |j||�5}|��ddd�y|��y#1swYyxYw�w)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_extractedzAppData.ensure_extracted2s7��������d�I�.�&���/�.��J�/�.�s�:�.�:�7�:c��t�rr)r
rr-s   rr,zAppData.extract;�
��"�!rc��t�rrrs  r�lockedzAppData.locked@r1rr)�__name__�
__module__�__qualname__�__doc__rrrrr�propertyrr#r%r'r*rr/r,r3rrrr	r	s��D��.��.��A��A��"��"��"��"��"��"��"��"��"��"��"��"��"��"�������"���"���"���"rr	c�f�eZdZed��Zed��Zed��Zed��Zeed���Z	y)�ContentStorec��t�rrrs r�existszContentStore.existsGrrc��t�rrrs r�readzContentStore.readKrrc��t�rr)r
�contents  r�writezContentStore.writeOrrc��t�rrrs r�removezContentStore.removeSrrc��yrrrs rr3zContentStore.lockedWs��	
rN)
r4r5r6rr<r>rArCrr3rrrr:r:Fsl���"��"��"��"��"��"��"��"���
���
rr:N)
r7�
__future__r�abcrr�
contextlibr�virtualenv.inforr	r:�__all__rrr�<module>rJs<��,�"�#�%�%�8"�c�8"�v
�3�
�0���r
Back to Directory File Manager