| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/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"