HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/filelock/__pycache__/_soft.cpython-310.pyc
o

;�br�@sbddlmZddlZddlZddlmZmZmZddlm	Z	ddl
mZGdd�de	�ZdgZ
dS)	�)�annotationsN)�EACCES�EEXIST�ENOENT�)�BaseFileLock)�raise_on_exist_ro_filec@s$eZdZdZd	dd�Zd	dd�ZdS)
�SoftFileLockz.Simply watches the existence of the lock file.�return�Nonec
Cs�t|j�tjtjBtjBtjB}z	t�|j|�}Wn8tyR}z,|j	t
kr(n|j	tkr.�|j	tkr@t
jdkrG�WYd}~dSWYd}~dSWYd}~dSd}~ww||_dS)N�win32)r�
_lock_file�os�O_WRONLY�O_CREAT�O_EXCL�O_TRUNC�open�OSError�errnorrr�sys�platform�
_lock_file_fd)�self�mode�fd�	exception�r�0/usr/lib/python3/dist-packages/filelock/_soft.py�_acquires.
����

���
	zSoftFileLock._acquirecCs:t�|j�d|_z	t�|j�WdStyYdSw)N)r�closer�remover
r)rrrr�_release$s�zSoftFileLock._releaseN)r
r)�__name__�
__module__�__qualname__�__doc__rr"rrrrr	s
r	)�
__future__rrrrrrr�_apir�_utilrr	�__all__rrrr�<module>s#�