| Server IP : 172.67.156.203 / Your IP : 216.73.216.72 Web Server : Apache System : Linux gator4057.hostgator.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64 User : badawi ( 1130) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/filelock/__pycache__/ |
Upload File : |
a
]��db � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZ ddlm Z ddl
mZ ejdkrpd dl
Z
G d d
� d
e �ZnG dd
� d
e �Zd
gZdS )� )�annotationsN)�ENOENT)�cast� )�BaseFileLock)�raise_on_exist_ro_file�win32c @ s, e Zd ZdZdd�dd�Zdd�dd�ZdS ) �WindowsFileLock�WUses the :func:`msvcrt.locking` function to hard lock the lock file on windows systems.�None��returnc
C s� t | j� tjtjB tjB }zt�| j|�}W n0 ty^ } z|jt krJ� W Y d }~nBd }~0 0 zt
�|t
jd� W n ty� t�
|� Y n0 || _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 �5/usr/lib/python3.9/site-packages/filelock/_windows.py�_acquire s"