. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.221 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/filelock/__pycache__/ |
Upload File : |
B
���a� � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z ddl
mZ ddlm
Z
ejd kr|d dlZG d
d� de�ZnG dd� dee�ZdgZdS )
� )�annotationsN)�ABC)�ENOENT)�cast� )�BaseFileLock)�raise_on_exist_ro_file�win32c @ s, e Zd ZdZdd�dd�Zdd�dd�ZdS ) �WindowsFileLockzWUses the :func:`msvcrt.locking` function to hard lock the lock file on windows systems.�None)�returnc
C s� t | j� tjtjB tjB }yt�| j|�}W n. tk
r\ } z|jt krL� W d d }~X Y n<X yt
�|t
jd� W n tk
r� t�
|� Y nX || _d S )Nr )r �
_lock_file�os�O_RDWR�O_CREAT�O_TRUNC�open�OSError�errnor �msvcrt�lockingZLK_NBLCK�close�
_lock_file_fd)�self�mode�fd� exception� r �B/opt/alt/python37/lib/python3.7/site-packages/filelock/_windows.py�_acquire s
zWindowsFileLock._acquirec C sV t t| j�}d | _t�|tjd� t�|� yt�| j � W n t
k
rP Y nX d S )Nr )r �intr r r ZLK_UNLCKr r �remover
r )r r r r r �_release&