o
    $¼"b  ã                   @   sP   d dl mZmZ d dlmZ ddlmZmZ G dd„ deƒZG dd„ deƒZ	d	S )
é    )Úabsolute_importÚunicode_literals)Úcontextmanageré   )ÚAppDataÚContentStorec                   @   sx   e Zd ZdZdZdZdd„ ZedƒZdd„ Z	d	d
„ Z
dd„ Zdd„ Zdd„ Zedd„ ƒZedd„ ƒZdd„ Zdd„ ZdS )ÚAppDataDisabledzONo application cache available (most likely as we don't have write permissions)TFc                 C   s   d S ©N© ©Úselfr
   r
   ú8/usr/lib/python3/dist-packages/virtualenv/app_data/na.pyÚ__init__   ó   zAppDataDisabled.__init__zDno app data folder available, probably no write access to the folderc                 C   ó   dS ©z
do nothingNr
   r   r
   r
   r   Úclose   ó    zAppDataDisabled.closec                 C   r   r   r
   r   r
   r
   r   Úreset   r   zAppDataDisabled.resetc                 C   ó   t ƒ S r	   ©ÚContentStoreNA©r   Úpathr
   r
   r   Úpy_info   ó   zAppDataDisabled.py_infoc                 C   r   r	   r   )r   ÚdistributionÚfor_py_versionr
   r
   r   Úembed_update_log   r   z AppDataDisabled.embed_update_logc                 C   ó   | j ‚r	   ©Úerror)r   r   Ú	to_folderr
   r
   r   Úextract   r   zAppDataDisabled.extractc                 c   s   � dV  dS r   r
   r   r
   r
   r   Úlocked"   s   €
zAppDataDisabled.lockedc                 C   r   r	   r    r   r
   r
   r   Úhouse'   s   zAppDataDisabled.housec                 C   r   r	   r    )r   r   Únamer
   r
   r   Úwheel_image+   r   zAppDataDisabled.wheel_imagec                 C   r   ©ú Nr
   r   r
   r
   r   Úpy_info_clear.   r   zAppDataDisabled.py_info_clearN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	transientÚ
can_updater   ÚRuntimeErrorr!   r   r   r   r   r#   r   r$   Úpropertyr%   r'   r*   r
   r
   r
   r   r      s"    

r   c                   @   s8   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zed	d
„ ƒZdS )r   c                 C   r   )NFr
   r   r
   r
   r   Úexists3   r   zContentStoreNA.existsc                 C   r   r(   r
   r   r
   r
   r   Úread6   s   zContentStoreNA.readc                 C   r   r(   r
   )r   Úcontentr
   r
   r   Úwrite:   r   zContentStoreNA.writec                 C   r   r(   r
   r   r
   r
   r   Úremove=   r   zContentStoreNA.removec                 c   s   � d V  d S r	   r
   r   r
   r
   r   r$   @   s   €
zContentStoreNA.lockedN)	r+   r,   r-   r3   r4   r6   r7   r   r$   r
   r
   r
   r   r   2   s    r   N)
Ú
__future__r   r   Ú
contextlibr   Úbaser   r   r   r   r
   r
   r
   r   Ú<module>   s
    *