|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /opt/alt/python37/lib/python3.7/site-packages/filelock/__pycache__/ |
B �62y��:� @ sb d dl mZ d dlZd dlZd dlmZmZmZ ddlm Z ddl mZ G dd� de �ZdgZ dS ) � )�annotationsN)�EACCES�EEXIST�ENOENT� )�BaseFileLock)�raise_on_exist_ro_filec @ s, e Zd ZdZdd�dd�Zdd�dd�ZdS ) �SoftFileLockz.Simply watches the existence of the lock file.�None)�returnc C s� t | j� tjtjB tjB tjB }yt�| j|�}W nR tk r� } z4|j t krRn$|j tkr`� n|j tkrvt jdkrv� W d d }~X Y nX || _d S )N�win32)r � _lock_file�os�O_WRONLY�O_CREAT�O_EXCL�O_TRUNC�open�OSError�errnor r r �sys�platform� _lock_file_fd)�self�mode�fd� exception� r �?/opt/alt/python37/lib/python3.7/site-packages/filelock/_soft.py�_acquire s zSoftFileLock._acquirec C s<