U
    |’“eÜ  ã                   @  sT   d dl 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dgZ	d	S )
é    )Úannotations)Úcontextmanageré   )ÚAppDataÚContentStorec                   @  s~   e Zd ZdZdZdZddœ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 )ÚAppDataDisabledzPNo application cache available (most likely as we don't have write permissions).TFÚNone)Úreturnc                 C  s   d S ©N© ©Úselfr   r   ú:/tmp/pip-unpacked-wheel-tuxcr54r/virtualenv/app_data/na.pyÚ__init__   s    zAppDataDisabled.__init__zDno app data folder available, probably no write access to the folderc                 C  s   dS ©zDo nothing.Nr   r   r   r   r   Úclose   s    zAppDataDisabled.closec                 C  s   dS r   r   r   r   r   r   Úreset   s    zAppDataDisabled.resetc                 C  s   t ƒ S r
   ©ÚContentStoreNA©r   Úpathr   r   r   Úpy_info   s    zAppDataDisabled.py_infoc                 C  s   t ƒ S r
   r   )r   ÚdistributionÚfor_py_versionr   r   r   Úembed_update_log   s    z AppDataDisabled.embed_update_logc                 C  s
   | j ‚d S r
   ©Úerror)r   r   Z	to_folderr   r   r   Úextract   s    zAppDataDisabled.extractc                 c  s
   dV  dS r   r   r   r   r   r   Úlocked"   s    zAppDataDisabled.lockedc                 C  s
   | j ‚d S r
   r   r   r   r   r   Úhouse'   s    zAppDataDisabled.housec                 C  s
   | j ‚d S r
   r   )r   r   Únamer   r   r   Úwheel_image+   s    zAppDataDisabled.wheel_imagec                 C  s   dS )zNothing to clear.Nr   r   r   r   r   Úpy_info_clear.   s    zAppDataDisabled.py_info_clearN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z	transientZ
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  s   dS )NFr   r   r   r   r   Úexists3   s    zContentStoreNA.existsc                 C  s   dS )zNothing to read.Nr   r   r   r   r   Úread6   s    zContentStoreNA.readc                 C  s   dS )zNothing to write.Nr   )r   Úcontentr   r   r   Úwrite:   s    zContentStoreNA.writec                 C  s   dS )zNothing to remove.Nr   r   r   r   r   Úremove=   s    zContentStoreNA.removec                 c  s
   d V  d S r
   r   r   r   r   r   r   @   s    zContentStoreNA.lockedN)	r#   r$   r%   r)   r*   r,   r-   r   r   r   r   r   r   r   2   s   r   N)
Ú
__future__r   Ú
contextlibr   Úbaser   r   r   r   Ú__all__r   r   r   r   Ú<module>   s   *þ