AlkantarClanX12

Your IP : 18.117.154.229


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/posixpath.cpython-310.opt-2.pyc

o

6��fz?�@s	dZdZdZdZdZdZdZdZddlZddl	Z	ddl
Z
ddlZddlTgd	�Zd
d�Z
dd
�Zdd�Zdd�Zdd�Zdd�Zejje_dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zdadad$d%�Zd&d'�Zd(d)�Z d*d+�d,d-�Z!d.d/�Z"e	j#d0kZ$d5d1d2�Z%d3d4�Z&dS)6�.�..�/�:z
/bin:/usr/binNz	/dev/null�)�*)&�normcase�isabs�join�
splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount�
expanduser�
expandvars�normpath�abspath�samefile�sameopenfile�samestat�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath�
commonpathcCst|t�rdSdS)N�/r)�
isinstance�bytes��path�r2�0/opt/alt/python310/lib64/python3.10/posixpath.py�_get_sep)s
r4cCs	t�|�S�N��os�fspath)�sr2r2r3r4s
rcCs	t�|�}t|�}|�|�Sr5)r7r8r4�
startswith)r9r#r2r2r3r<s

rc
Gs�	t�|�}t|�}|}z0|s|dd�|ttj|�D]}|�|�r'|}q|r.|�|�r3||7}q|||7}qW|StttfyQt	j
d|g|�R��w)Nrr	)r7r8r4�mapr:�endswith�	TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)�a�pr#r1�br2r2r3r	Gs&


�
��r	cCsb	t�|�}t|�}|�|�d}|d|�||d�}}|r-||t|�kr-|�|�}||fS�N��r7r8r4�rfind�len�rstrip)rCr#�i�head�tailr2r2r3rds

rcCs6t�|�}t|t�rd}d}nd}d}t�||d|�S)Nr-�.rr)r7r8r.r/r@�	_splitext)rCr#r'r2r2r3rus

rcCs	t�|�}|dd�|fS�Nrr6)rCr2r2r3r
�s
r
cCs.	t�|�}t|�}|�|�d}||d�SrE)r7r8r4rH)rCr#rKr2r2r3r
�s

r
cCsP	t�|�}t|�}|�|�d}|d|�}|r&||t|�kr&|�|�}|SrErG)rCr#rKrLr2r2r3r�s

rc
Cs8	zt�|�}Wn
tttfyYdSwt�|j�S)NF)r7�lstat�OSError�
ValueErrorr>�stat�S_ISLNK�st_mode)r1�str2r2r3r�s�rc	Cs,	zt�|�WdSttfyYdSw)NFT)r7rQrRrSr0r2r2r3r�s��rc	Cs�	zt�|�}WnttfyYdSwt�|j�rdSt�|�}t|t	�r-t
|d�}nt
|d�}t|�}zt�|�}WnttfyIYdSw|j}|j}||krVdS|j
}|j
}||krbdSdS)NF�..rT)r7rQrRrSrTrUrVr8r.r/r	r)�st_dev�st_ino)r1�s1�parent�s2�dev1�dev2�ino1�ino2r2r2r3r�s6�


�rc	CsJ	t�|�}t|t�rd}nd}|�|�s|St|�}|�|d�}|dkr)t|�}|dkrRdtjvrLddl	}z
|�
t���j}Wn;t
yK|YSwtjd}n*ddl	}|d|�}t|t�rft|d�}z|�|�}Wnt
yx|YSw|j}|dur�tjdkr�|St|t�r�t�|�}d}nd	}|�|�}|||d�p�|S)
N�~�~rFr�HOME�ASCII�vxworksr-r)r7r8r.r/r:r4�findrI�environ�pwd�getpwuid�getuid�pw_dir�KeyError�str�getpwnam�sys�platform�fsencoderJ)	r1�tilder#rKri�userhome�name�pwent�rootr2r2r3r�sL



�

�


rcCsV	t�|�}t|t�r,d|vr|Stsddl}|�d|j�atj}d}d}t	tdd�}nd|vr2|St
s?ddl}|�d|j�a
t
j}d	}d
}tj}d}	|||�}|sV	|S|�d�\}}|�
d�}	|	�|�rr|	�|�rr|	dd
�}	z|dur�t�tjt�|	��}
n||	}
Wnty�|}Ynw||d�}|d|�|
}t|�}||7}qL)N�$rs\$(\w+|\{[^}]*\})�{�}�environb�$z\$(\w+|\{[^}]*\})�{�}TrF���)r7r8r.r/�	_varprogb�re�compilere�search�getattr�_varprogrh�span�groupr:r<rr�fsdecodermrI)r1r�r��start�endrhrK�m�jru�valuerMr2r2r3rsX


�
���rc	Cs�	t�|�}t|t�rd}d}d}d}nd}d}d}d}||kr"|S|�|�}|r9|�|d	�r9|�|d
�s9d	}|�|�}g}|D]%}|||fvrKqB||ks[|sS|r[|ra|d|kra|�|�qB|rg|��qB|}|�|�}|rw|||}|pz|S)Nr-�rNrXr�rr��r)	r7r8r.r/r:r�append�popr	)	r1r#�empty�dot�dotdot�initial_slashes�comps�	new_comps�compr2r2r3rRsL


��
��
rcCsB	t�|�}t|�st|t�rt��}nt��}t||�}t|�Sr5)	r7r8rr.r/�getcwdb�getcwdr	r)r1�cwdr2r2r3rys



rF)�strictcCs.	t�|�}t|dd�||i�\}}t|�SrP)r7r8�
_joinrealpathr)�filenamer�r1�okr2r2r3r)�s
r)c
Cs\t|t�rd}d}d}nd}d}d}t|�r|dd�}|}|r�|�|�\}}}|r.||kr/q||krI|rFt|�\}}||krEt|||�}n|}qt||�}	zt�|	�}
Wntyc|r_�d}Ynwt	�
|
j�}|so|	}q|	|vr�||	}|dur|q|r�t�	|	�nt|	|�dfSd||	<t|t�
|	�||�\}}|s�t||�dfS|||	<|s |d	fS)
Nr-rNrXrrrrFFT)r.r/r�	partitionrr	r7rQrRrTrUrVr��readlink)
r1�restr��seenr#r!r"ru�_�newpathrW�is_linkr�r2r2r3r��s`
�
��.r��darwinc	Cs�	|std��t�|�}t|t�rd}d}d}nd}d}d}|dur%|}nt�|�}z9dd	�t|��|�D�}d
d	�t|��|�D�}tt||g��}|gt|�|||d�}|s_|WSt	|�WSt
ttt
fyvt�d||��w)Nzno path specifiedrNr-rXrrrcS�g|]}|r|�qSr2r2��.0�xr2r2r3�
<listcomp>��zrelpath.<locals>.<listcomp>cSr�r2r2r�r2r2r3r��r�r+)rSr7r8r.r/rrrIrr	r=r>r?�DeprecationWarningr@rA)	r1r�r!r#r"�
start_list�	path_listrK�rel_listr2r2r3r+�s4



�r+c		s&	|std��tttj|��}t|dt�rd�d�nd�d�z`�fdd�|D�}zt�fd	d
�|D��\}WntyCtd�d�w�fdd�|D�}t|�}t	|�}|}t
|�D]\}}|||krm|d|�}nq[|rr�n�dd�}|��|�WStt
fy�tjd
g|�R��w)Nz%commonpath() arg is an empty sequencerr-rNrrcsg|]}|����qSr2)r)r�r1�r#r2r3r�
szcommonpath.<locals>.<listcomp>c3s �|]}|dd��kVqdSrEr2)r�rCr�r2r3�	<genexpr>
s�zcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathscsg|]}�fdd�|D��qS)csg|]
}|r|�kr|�qSr2r2)r��c�r!r2r3r�sz)commonpath.<locals>.<listcomp>.<listcomp>r2)r�r9r�r2r3r�sr,)rS�tupler;r7r8r.r/�set�min�max�	enumerater	r=r>r@rA)	�paths�split_pathsrr[r]�commonrKr��prefixr2)r!r#r3r,�s>
���r,r5)'r!r"r'r#r$r%r&r(r7rprTr@�__all__r4rrr	rrrO�__doc__r
r
rrrrrr�r�rrrr)r�rqr*r+r,r2r2r2r3�<module>sN

		

+55'	
?
)