Server IP : 192.158.238.246 / Your IP : 3.143.221.185 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/virtualenv/util/__pycache__/ |
Upload File : |
B ���a� � @ s� d Z ddlmZmZ ddlZddlZddlmZmZ ddl m Z ddlmZm Z ddlmZmZ ddlmZ dd lmZ G d d� de�Zi Ze� Zee�G dd � d e��ZG dd� de�ZG dd� de�ZdZdS )z7holds locking functionality that works across processes� )�absolute_import�unicode_literalsN)�ABCMeta�abstractmethod)�contextmanager)�Lock�RLock)�FileLock�Timeout)� add_metaclass)�Pathc s8 e Zd Z� fdd�Zd � fdd� Zd� fdd � Z� ZS )�_CountedFileLockc s^ t j�|�}t j�|�s<yt �|� W n tk r: Y nX tt| ��|� d| _ t � | _d S )Nr )�os�path�dirname�isdir�makedirs�OSError�superr �__init__�countr �thread_safe)�self� lock_file�parent)� __class__� �E/opt/alt/python37/lib/python3.7/site-packages/virtualenv/util/lock.pyr s z_CountedFileLock.__init__N皙�����?c s@ | j �0 | jdkr$tt| ��||� | jd7 _W d Q R X d S )Nr � )r r r r �acquire)r �timeoutZ poll_interval)r r r r s z_CountedFileLock.acquireFc sD | j �4 | jdkr$tt| �j|d� t| jd d�| _W d Q R X d S )Nr )�forcer )r r r r �release�max)r r"