3
W>p_  ใ               @   s|   d Z ddlmZmZ ddlmZmZ ddlmZ ddl	Z	ddl
mZ e	jeG dd deZe	jeG d	d
 d
eZdS )z(
Application data stored by virtualenv.
้    )ฺabsolute_importฺunicode_literals)ฺABCMetaฺabstractmethod)ฺcontextmanagerN)ฺ	IS_ZIPAPPc               @   s   e Zd ZdZedd Zedd Zedd Zedd	 Zed
d Z	e
dd Ze
dd Zedd ZedddZeedd Zeedd ZdS )ฺAppDataz9Abstract storage interface for the virtualenv applicationc             C   s   dS )zcalled before virtualenv exitsNฉ )ฺselfr	   r	   ๚/home/aldo/Documentos/tesis/tesis/device auto/pruebas pulsar/pruebaclonado/envClonado/lib/python3.6/site-packages/virtualenv/app_data/base.pyฺclose   s    zAppData.closec             C   s   dS )z1called when the user passes in the reset app dataNr	   )r
   r	   r	   r   ฺreset   s    zAppData.resetc             C   s   t d S )N)ฺNotImplementedError)r
   ฺpathr	   r	   r   ฺpy_info   s    zAppData.py_infoc             C   s   t d S )N)r   )r
   r	   r	   r   ฺpy_info_clear   s    zAppData.py_info_clearc             C   s   t d S )N)r   )r
   ฺdistributionฺfor_py_versionr	   r	   r   ฺembed_update_log"   s    zAppData.embed_update_logc             C   s   t d S )N)r   )r
   r	   r	   r   ฺhouse&   s    zAppData.housec             C   s   t d S )N)r   )r
   r	   r	   r   ฺ	transient*   s    zAppData.transientc             C   s   t d S )N)r   )r
   r   ฺnamer	   r	   r   ฺwheel_image.   s    zAppData.wheel_imageNc          	   c   s.   t r$| j||}|V  W dQ R X n|V  dS )zHSome paths might be within the zipapp, unzip these to a path on the diskN)r   ฺextract)r
   r   ฺ	to_folderฺresultr	   r	   r   ฺensure_extracted2   s    zAppData.ensure_extractedc             C   s   t d S )N)r   )r
   r   r   r	   r	   r   r   ;   s    zAppData.extractc             C   s   t d S )N)r   )r
   r   r	   r	   r   ฺlocked@   s    zAppData.locked)N)ฺ__name__ฺ
__module__ฺ__qualname__ฺ__doc__r   r   r   r   r   r   ฺpropertyr   r   r   r   r   r   r   r	   r	   r	   r   r      s   r   c               @   sL   e Zd Zedd Zedd Zedd Zedd Zeed	d
 Z	dS )ฺContentStorec             C   s   t d S )N)r   )r
   r	   r	   r   ฺexistsH   s    zContentStore.existsc             C   s   t d S )N)r   )r
   r	   r	   r   ฺreadL   s    zContentStore.readc             C   s   t d S )N)r   )r
   ฺcontentr	   r	   r   ฺwriteP   s    zContentStore.writec             C   s   t d S )N)r   )r
   r	   r	   r   ฺremoveT   s    zContentStore.removec             C   s   d S )Nr	   )r
   r	   r	   r   r   X   s    zContentStore.lockedN)
r   r   r    r   r$   r%   r'   r(   r   r   r	   r	   r	   r   r#   F   s   r#   )r!   ฺ
__future__r   r   ฺabcr   r   ฺ
contextlibr   ฺsixZvirtualenv.infor   ฺadd_metaclassฺobjectr   r#   r	   r	   r	   r   ฺ<module>   s   7