| Server IP : 157.22.201.140 / Your IP : 216.73.216.74 Web Server : nginx/1.30.1 System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/lockfile/__pycache__/ |
Upload File : |
�
��UV8
� �R � d dl mZ d dlZd dlZddlmZmZmZmZm Z G d� de� Z
y)� )�absolute_importN� )�LockBase� NotLocked� NotMyLock�LockTimeout�
AlreadyLockedc �8 � e Zd ZdZd d�Zd
d�Zd� Zd� Zd� Zd� Z y)�SymlinkLockFilez'Lock access to a file using symlink(2).Nc � � t j | |||� t j j | j
� d | _ y )Nr )r �__init__�os�path�split�unique_name)�selfr �threaded�timeouts �:/usr/lib/python3/dist-packages/lockfile/symlinklockfile.pyr
zSymlinkLockFile.__init__
s6 � ����$��h��8��7�7�=�=��)9�)9�:�1�=��� c �� � |�|n| j }t j � }|�
|dkD r||z
} t j | j | j
� y # t $ r | j � rY y |�Lt j � |kD r5|dkD rt d| j z � �t d| j z � �t j |�|dz nd� Y nw xY w��)Nr z&Timeout waiting to acquire lock for %sz%s is already locked�
g�������?)r �timer �symlinkr � lock_file�OSError�i_am_lockingr r r �sleep)r r �end_times r �acquirezSymlinkLockFile.acquire s� � � %�0�'�d�l�l���9�9�;����7�Q�;����H��
��
�
�4�+�+�T�^�^�<�&