Hacked By AnonymousFox

Current Path : /opt/alt/python39/lib64/python3.9/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/__pycache__/posixpath.cpython-39.opt-2.pyc

a

R�fi=�@sdZdZdZdZdZdZdZdZddlZddl	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+�Z!d,d-�Z"e	j#d.kZ$d3d/d0�Z%d1d2�Z&dS)4�.�..�/�: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�rdSdSdS)N�/r)�
isinstance�bytes��path�r2�./opt/alt/python39/lib64/python3.9/posixpath.py�_get_sep)s
r4cCs
t�|�S�N��os�fspath)�sr2r2r3r4srcCst�|�}t|�}|�|�Sr5)r7r8r4�
startswith)r9r#r2r2r3r<s
rc
Gs�t�|�}t|�}|}z^|s,|dd�|ttj|�D]8}|�|�rL|}q8|rZ|�|�rd||7}q8|||7}q8Wn.tttfy�t	j
d|g|�R��Yn0|S)Nrr	)r7r8r4�mapr:�endswith�	TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)�a�pr#r1�br2r2r3r	Gs 


r	cCs`t�|�}t|�}|�|�d}|d|�||d�}}|rX||t|�krX|�|�}||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cCst�|�}|dd�|fS�Nrr6)rCr2r2r3r
�s
r
cCs,t�|�}t|�}|�|�d}||d�SrE)r7r8r4rH)rCr#rKr2r2r3r
�s
r
cCsNt�|�}t|�}|�|�d}|d|�}|rJ||t|�krJ|�|�}|SrErG)rCr#rKrLr2r2r3r�s

rc
Cs6zt�|�}Wntttfy(YdS0t�|j�S)NF)r7�lstat�OSError�
ValueErrorr>�stat�S_ISLNK�st_mode)r1�str2r2r3r�s
rc	Cs,zt�|�Wnttfy&YdS0dS)NFT)r7rQrRrSr0r2r2r3r�s
rc	Cs�zt�|�}Wnttfy&YdS0t�|j�r8dSt|t�rNt	|d�}n
t	|d�}t
|�}zt�|�}Wnttfy�YdS0|j}|j}||kr�dS|j}|j}||kr�dSdS)NF�..rT)
r7rQrRrSrTrUrVr.r/r	r)�st_dev�st_ino)r1�s1�parent�s2�dev1�dev2�ino1�ino2r2r2r3r�s.

rc	Cs8t�|�}t|t�rd}nd}|�|�s,|St|�}|�|d�}|dkrPt|�}|dkr�dtjvr�ddl	}z|�
t���j}Wq�t
y�|YS0n
tjd}nTddl	}|d|�}t|t�r�t|d�}z|�|�}Wnt
y�|YS0|j}t|t��rt�|�}d}nd}|�|�}|||d��p6|S)	N�~�~rFr�HOME�ASCIIr-r)r7r8r.r/r:r4�findrI�environ�pwd�getpwuid�getuid�pw_dir�KeyError�str�getpwnam�fsencoderJ)	r1�tilder#rKrh�userhome�name�pwent�rootr2r2r3r�sB








rcCsXt�|�}t|t�rVd|vr |Sts:ddl}|�d|j�atj}d}d}t	tdd�}n:d|vrb|St
s|ddl}|�d|j�a
t
j}d	}d
}tj}d}|||�}|s��qT|�d�\}}|�
d�}	|	�|�r�|	�|�r�|	dd�}	z.|du�rt�tjt�|	��}
n||	}
Wnt�y$|}Yq�0||d�}|d|�|
}t|�}||7}q�|S)
N�$rs\$(\w+|\{[^}]*\})�{�}�environb�$z\$(\w+|\{[^}]*\})�{�}rF���)r7r8r.r/�	_varprogb�re�compilere�search�getattr�_varprogrg�span�groupr:r<ro�fsdecoderlrI)r1r~r��start�endrgrK�m�jrr�valuerMr2r2r3rsN






rc	Cs�t�|�}t|t�r&d}d}d}d}nd}d}d}d}||krB|S|�|�}|rp|�|d	�rp|�|d
�spd	}|�|�}g}|D]J}|||fvr�q�||ks�|s�|r�|r�|d|kr�|�|�q�|r�|��q�|}|�|�}|r�|||}|p�|S)Nr-�rNrXr�rr��r|)	r7r8r.r/r:r�append�popr	)	r1r#�empty�dot�dotdot�initial_slashes�comps�	new_comps�compr2r2r3rNsJ


��
�
�

rcCs@t�|�}t|�s8t|t�r&t��}nt��}t||�}t|�Sr5)	r7r8rr.r/�getcwdb�getcwdr	r)r1�cwdr2r2r3rus



rcCs*t�|�}t|dd�|i�\}}t|�SrP)r7r8�
_joinrealpathr)�filenamer1�okr2r2r3r)�s
r)c
Cst|t�rd}d}d}nd}d}d}t|�r<|dd�}|}|�r|�|�\}}}|r<||kr`q<||kr�|r�t|�\}}||kr�t|||�}q<|}q<t||�}t|�s�|}q<||vr�||}|dur�q<t||�dfSd||<t|t�	|�|�\}}	|	�st||�dfS|||<q<|d	fS)
Nr-rNrXrrrrFFT)
r.r/r�	partitionrr	rr�r7�readlink)
r1�rest�seenr#r!r"rr�_�newpathr�r2r2r3r��sH


r��darwinc	Cs�|std��t�|�}t|t�r.d}d}d}nd}d}d}|durH|}n
t�|�}zrdd	�t|��|�D�}d
d	�t|��|�D�}tt||g��}|gt|�|||d�}|s�|WSt	|�WSt
ttt
fy�t�d||��Yn0dS)Nzno path specifiedrNr-rXrrrcSsg|]}|r|�qSr2r2��.0�xr2r2r3�
<listcomp>�r�zrelpath.<locals>.<listcomp>cSsg|]}|r|�qSr2r2r�r2r2r3r��r�r+)rSr7r8r.r/rrrIrr	r=r>r?�DeprecationWarningr@rA)	r1r�r!r#r"�
start_list�	path_listrK�rel_listr2r2r3r+�s0



r+c		s2|std��tttj|��}t|dt�r4d�d�nd�d�zćfdd�|D�}zt�fd	d
�|D��\}Wnty�td�d�Yn0�fdd�|D�}t|�}t	|�}|}t
|�D]$\}}|||kr�|d|�}q�q�|r�n
�dd�}|��|�WStt
f�y,tjd
g|�R��Yn0dS)Nz%commonpath() arg is an empty sequencerr-rNrrcsg|]}|����qSr2)r)r�r1�r#r2r3r��r�zcommonpath.<locals>.<listcomp>c3s|]}|dd��kVqdSrEr2)r�rCr�r2r3�	<genexpr>�r�zcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathscsg|]}�fdd�|D��qS)csg|]}|r|�kr|�qSr2r2)r��c�r!r2r3r�r�z)commonpath.<locals>.<listcomp>.<listcomp>r2)r�r9r�r2r3r�r�r,)rS�tupler;r7r8r.r/�set�min�max�	enumerater	r=r>r@rA)	�paths�split_pathsrr[r]�commonrKr��prefixr2)r!r#r3r,�s6r,)N)'r!r"r'r#r$r%r&r(r7�sysrTr@�__all__r4rrr	rrrO�__doc__r
r
rrrrrr�r}rrrr)r��platformr*r+r,r2r2r2r3�<module>sJ
	
	

*25'	3

)

Hacked By AnonymousFox1.0, Coded By AnonymousFox