https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/lockfile/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/lockfile/__pycache__/symlinklockfile.cpython-310.pyc
o

��UV8
�@sLddlmZddlZddlZddlmZmZmZmZm	Z	Gdd�de�Z
dS)�)�absolute_importN�)�LockBase�	NotLocked�	NotMyLock�LockTimeout�
AlreadyLockedc@sDeZdZdZddd�Zddd�Zdd	�Zd
d�Zdd
�Zdd�Z	dS)�SymlinkLockFilez'Lock access to a file using symlink(2).TNcCs(t�||||�tj�|j�d|_dS)Nr)r�__init__�os�path�split�unique_name)�selfr�threaded�timeout�r�:/usr/lib/python3/dist-packages/lockfile/symlinklockfile.pyr

szSymlinkLockFile.__init__cCs�|dur|n|j}t��}|dur|dkr||7}	zt�|j|j�WdSty^|��r3YdS|durOt��|krO|dkrHtd|j	��t
d|j	��t�|durY|dnd�Ynwq)NrTz&Timeout waiting to acquire lock for %sz%s is already locked�
g�������?)r�timer�symlinkr�	lock_file�OSError�i_am_lockingrrr�sleep)rr�end_timerrr�acquires,�����zSymlinkLockFile.acquirecCs<|��std|j��|��std|j��t�|j�dS)Nz%s is not lockedz%s is locked, but not by me)�	is_lockedrrrrr�unlinkr�rrrr�release6s
zSymlinkLockFile.releasecCstj�|j�S�N)rr�islinkrrrrrr=szSymlinkLockFile.is_lockedcCs tj�|j�ot�|j�|jkSr!)rrr"r�readlinkrrrrrr@s�zSymlinkLockFile.i_am_lockingcCs"tj�|j�rt�|j�dSdSr!)rrr"rrrrrr�
break_lockDs�zSymlinkLockFile.break_lock)TNr!)
�__name__�
__module__�__qualname__�__doc__r
rr rrr$rrrrr	
s

#r	)�
__future__rrr�rrrrrr	rrrr�<module>s


https://t.me/RX1948 - 2025