| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.9/site-packages/filelock/__pycache__/ |
Upload File : |
a
]��dr � @ sb d dl mZ d dlZd dlZd dlmZmZmZ ddlm Z ddl
mZ G dd� de �ZdgZ
dS ) � )�annotationsN)�EACCES�EEXIST�ENOENT� )�BaseFileLock)�raise_on_exist_ro_filec @ s, e Zd ZdZdd�dd�Zdd�dd�ZdS ) �SoftFileLockz.Simply watches the existence of the lock file.�None)�returnc
C s� t | j� tjtjB tjB tjB }zt�| j|�}W nT ty� } z<|j t
krPn$|j tkr^� n|j tkrtt
jdkrt� W Y d }~nd }~0 0 || _d S )N�win32)r �
_lock_file�os�O_WRONLY�O_CREAT�O_EXCL�O_TRUNC�open�OSError�errnor r r �sys�platform�
_lock_file_fd)�self�mode�fd� exception� r �2/usr/lib/python3.9/site-packages/filelock/_soft.py�_acquire s&