| 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 : /lib64/python3.9/site-packages/mercurial/__pycache__/ |
Upload File : |
a
�+�b�/ � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZddl m
Z
ddlmZ ddl
mZmZmZmZ ddlmZ dd � Zejd
d� �Zdd
� ZG dd� de�Zdd� ZdS )� )�absolute_importN� )�_)�getattr)�encoding�error�pycompat�util)�procutilc
C st t �t�� �} tj�d�rpz| dt�d�j 7 } W n< t
yn } z$|jtjtj
tjfvrZ� W Y d}~n
d}~0 0 | S )a
Return a string which is used to differentiate pid namespaces
It's useful to detect "dead" processes and remove stale locks with
confidence. Typically it's just hostname. On modern linux, we include an
extra Linux-specific pid namespace identifier.
s linuxs /%xs /proc/self/ns/pidN)r Z
strtolocal�socketZgethostnamer Zsysplatform�
startswith�os�stat�st_ino�OSError�errno�ENOENTZEACCES�ENOTDIR)�result�ex� r �4/usr/lib64/python3.9/site-packages/mercurial/lock.py�_getlockprefix s r c # s g � d�i } dd� �� ��fdd�}z�dD ]*}t t|d�}|r*|| vr*t�|�| |<