/
lib
/
python3.9
/
site-packages
/
virtualenv
/
app_data
/
__pycache__
/
Upload File
HOME
a ��:i � @ sN d dl Zd dlmZ ddlmZmZ G dd� de�ZG dd� de�ZdgZ dS ) � N)�NoOpFileLock� )�AppDataDiskFolder�PyInfoStoreDiskc sT e Zd ZdZedd�� fdd�Zdd�dd�Zdd�d d �Zdd� Zd d� Z � Z S )�ReadOnlyAppDataFN)�folder�returnc s6 t j�|�std|� d���t� �|� t|�| _d S )Nzread-only app data directory z does not exist)�os�path�isdir�RuntimeError�super�__init__r �lock)�selfr �� __class__� �A/usr/lib/python3.9/site-packages/virtualenv/app_data/read_only.pyr s zReadOnlyAppData.__init__)r c C s t d��d S )Nz)read-only app data does not support reset�r �r r r r �reset s zReadOnlyAppData.resetc C s t �d S �N��NotImplementedErrorr r r r � py_info_clear s zReadOnlyAppData.py_info_clearc C s t | j|�S r )�_PyInfoStoreDiskReadOnlyZ py_info_at)r r r r r �py_info s zReadOnlyAppData.py_infoc C s t �d S r r )r ZdistributionZfor_py_versionr r r �embed_update_log s z ReadOnlyAppData.embed_update_log)�__name__� __module__�__qualname__Z can_update�strr r r r r � __classcell__r r r r r s r c @ s e Zd Zdd� ZdS )r c C s t d��d S )Nz0read-only app data python info cannot be updatedr )r Zcontentr r r �write s z_PyInfoStoreDiskReadOnly.writeN)r r r! r$ r r r r r s r ) Zos.pathr Zvirtualenv.util.lockr Zvia_disk_folderr r r r �__all__r r r r �<module> s �