Your IP : 3.137.175.166


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

a

R�fVl�@s�dZdZdZdZdZdZdZdZddlZddl	Z	ddl
Z
ddlZdd	lTgd
�Zdd�Z
d
d�Zdd�Zdd�Zdd�Zdd�Zdd�Zejje_dd�Zdd�Zdd�Zdd �Zzdd!lmZWney�dZYn0d"d#�Zd$d%�Zd&d'�Zd(d)�Z d*d+�Z!zdd,lm"Z"Wne�y*e!Z#Yn
0d-d.�Z#zdd/lm$Z$m%Z&Wne�y`e#Z'Yn0d0d1�Z(d2d3�Z)d4d5�Z'e*e	d6��o�e	�+�d7d8kZ,d>d9d:�Z-d;d<�Z.zdd=lm/Z0Wne�y�Yn0dS)?�.�..�\�;�/z.;C:\binZnul�N)�*)&�normcase�isabs�join�
splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount�
expanduser�
expandvars�normpath�abspath�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath�samefile�sameopenfile�samestat�
commonpathcCst|t�rdSdSdS)N�\/�\/)�
isinstance�bytes��path�r4�+/opt/alt/python39/lib64/python3.9/ntpath.py�
_get_bothseps"s
r6cCs8t�|�}t|t�r$|�dd���S|�dd���SdS)N�/�\rr)�os�fspathr0r1�replace�lower��sr4r4r5r,s

rcCsjt�|�}t|t�r,|�dd��d�rBdSn|�dd��d�rBdSt|�d}t|�d	koh|d	t|�vS)
Nr7r8�\\?\Trr�\\?\�r)	r9r:r0r1r;�
startswithr�lenr6r=r4r4r5r	=s

r	c

GsTt�|�}t|t�r"d}d}d}nd}d}d}z�|sD|dd�|t|�\}}ttj|�D]~}t|�\}}	|	r�|	d|vr�|s�|s�|}|	}q\n*|r�||kr�|��|��kr�|}|	}q\|}|r�|d|vr�||}||	}q\|�r|d|v�r|�r|dd�|k�r|||WS||WSttt	f�yNt
jd	|g|�R��Yn0dS)
Nr8r.�:rr/�:r���r
)r9r:r0r1r�mapr<�	TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)
r3�pathsr!�seps�colonZresult_driveZresult_path�pZp_driveZp_pathr4r4r5r
MsL


��
r
cCst�|�}t|�dk�rt|t�r0d}d}d}nd}d}d}|�||�}|dd�|dkr�|dd	�|kr�|�|d�}|d
kr�|dd�|fS|�||d�}||dkr�|dd�|fS|d
kr�t|�}|d|�||d�fS|dd�|k�r|dd�|dd�fS|dd�|fS)N�r8r7rDrrrEr�rFrA)r9r:rCr0r1r;�find)rPr!r$rOZnormp�indexZindex2r4r4r5r|s.

$rcCsxt�|�}t|�}t|�\}}t|�}|rD||d|vrD|d8}q&|d|�||d�}}|�|�pj|}|||fS�NrA)r9r:r6rrC�rstrip)rPrN�d�i�head�tailr4r4r5r�s

rcCs8t�|�}t|t�r$t�|ddd�St�|ddd�SdS)Nr8r7�.rrr)r9r:r0r1rK�	_splitext�rPr4r4r5r
�s

r
cCst|�dSrU�rr]r4r4r5r�srcCst|�dS)Nrr^r]r4r4r5r�src
Cs6zt�|�}Wntttfy(YdS0t�|j�S)NF)r9�lstat�OSError�
ValueErrorrI�stat�S_ISLNK�st_mode�r3�str4r4r5r�s
rc	Cs,zt�|�}Wnttfy&YdS0dS)NFT)r9r_r`rarer4r4r5r�s
r)�_getvolumepathnamecCstt�|�}t|�}t|�}t|�\}}|rD|d|vrD|pB||vS||vrPdStrl|�|�t|��|�kSdSdS)NrTF)r9r:r6rrrgrV)r3rN�root�restr4r4r5rs
rcCs�t�|�}t|t�rd}nd}|�|�s,|Sdt|�}}||kr\||t|�vr\|d7}q:dtjvrrtjd}nDdtjvr�|Sztjd}Wnty�d}Yn0t	|tjd�}t|t�r�t�
|�}|dkr�t	t|�|d|��}|||d�S)N�~�~rAZUSERPROFILEZHOMEPATHZ	HOMEDRIVE�)r9r:r0r1rBrCr6�environ�KeyErrorr
�fsencoder)r3�tilderX�n�userhome�driver4r4r5r!s.








rcCs&t�|�}t|t�rhd|vr(d|vr(|Sddl}t|j|jdd�}d}d}d}d}d}ttd	d�}nFd
|vr|d|vr||Sddl}|j|jd}d}d}d
}d}d
}tj}|dd�}	d}
t	|�}|
|k�r"||
|
d�}||k�rV||
dd�}t	|�}z&|�
|�}
|	||d|
d�7}	Wn(t�yP|	||7}	|d}
Yn0�n�||k�rD||
d|
d�|k�r�|	|7}	|
d7}
n�||
dd�}t	|�}z|�
|�}
Wn(t�y�|	||7}	|d}
Ynf0|d|
�}
z.|du�rt�tjt�
|
��}n||
}Wn t�y6||
|}Yn0|	|7}	�n�||k�r||
d|
d�|k�r||	|7}	|
d7}
�q||
d|
d�|k�rT||
dd�}t	|�}z|�
|�}
Wn,t�y�|	|||7}	|d}
Ynj0|d|
�}
z.|du�rt�tjt�
|
��}n||
}Wn$t�yH|||
|}Yn0|	|7}	n�|dd�}
|
d7}
||
|
d�}|�r�||v�r�|
|7}
|
d7}
||
|
d�}�qxz.|du�r�t�tjt�
|
��}n||
}Wnt�y�||
}Yn0|	|7}	|�r|
d8}
n|	|7}	|
d7}
q�|	S)N�$�%rz_-�ascii�'�{�}�environb�$�%�'�{�}rArQ)r9r:r0r1�stringZ
ascii_lettersZdigits�getattrrmrCrTraro�fsdecodern)r3r�ZvarcharsZquoteZpercentZbraceZrbraceZdollarrm�resrTZpathlen�c�var�valuer4r4r5rQs�













rc	CsPt�|�}t|t�r*d}d}d}d}d}nd}d}d}d	}d
}|�|�rL|S|�||�}t|�\}}|�|�r�||7}|�|�}|�|�}d}|t	|�k�r,||r�|||kr�||=q�|||k�r"|dkr�||d|kr�||d|d�=|d8}n&|dk�r|�
|��r||=n|d7}q�|d7}q�|�sB|�sB|�|�||�|�S)
Nr8r7r[�..)s\\.\r?rrrr)z\\.\r@rrA)
r9r:r0r1rBr;r�lstriprrC�endswith�appendr
)	r3r!r$rr Zspecial_prefixes�prefix�compsrXr4r4r5r�sF









rcCs@t�|�}t|�s8t|t�r&t��}nt��}t||�}t|�S�N)	r9r:r	r0r1�getcwdb�getcwdr
r)r3�cwdr4r4r5�_abspath_fallback�s



r�)�_getfullpathnamec	Cs2ztt|��WSttfy,t|�YS0dSr�)rr�r`rar�r2r4r4r5rsr)�_getfinalpathname�readlinkc
Cs�d}t�}t|�|vr�|�t|��z:|}t|�}t|�s\t|�sJ|}Wq�ttt|�|��}Wq
t	y�}z$|j
|vr�WYd}~q��WYd}~q
d}~0ty�Yq�Yq
0q
|S)N)rArQrR��� �2�C�Wi&i(i))�setr�add�_nt_readlinkr	rrr
rr`�winerrorra)r3�allowed_winerror�seenZold_path�exr4r4r5�_readlink_deeps&
r�cCs�d}d}|r�zt|�}|r$t||�n|WSty�}z�|j|vrD�z4t|�}||krv|rdt||�n|WWYd}~SWnty�Yn0t|�\}}|r�|s�||WYd}~S|r�t||�n|}WYd}~qd}~00q|S)N)rArQrRr�r�r�r�r�r��{i�i�rl)r�r
r`r�r�r)r3r�rZr��new_path�namer4r4r5�_getfinalpathname_nonstrictCs(
$*r�c	
Csdt|�}t|t�rBd}d}d}t��}t|�tt�t��krjdSn(d}d}d}t��}t|�tt�krjdS|�	|�}|s�t
|�s�t||�}zt|�}d	}Wn2t
y�}z|j}t|�}WYd}~n
d}~00|�s`|�	|��r`|�	|��r||t|�d�}n|t|�d�}zt|�|k�r&|}Wn6t
�y^}z|j|k�rJ|}WYd}~n
d}~00|S)
Nr?s\\?\UNC\s\\s\\.\NULr@z\\?\UNC\z\\z\\.\NULr)rr0r1r9r�rror&r�rBr	r
r�r`r�r�rC)	r3r�Z
unc_prefixZnew_unc_prefixr�Z
had_prefixZinitial_winerrorr�Zspathr4r4r5r'qsD


r'�getwindowsversionrRrQcCsdt�|�}t|t�r"d}d}d}nd}d}d}|dur:|}|sFtd��t�|�}z�tt|��}tt|��}t|�\}}t|�\}	}
t|�t|	�kr�td|	|f��d	d
�|�	|�D�}dd
�|
�	|�D�}d}
t
||�D]$\}}t|�t|�kr�q�|
d
7}
q�|gt|�|
||
d�}|�s(|WSt|�WSt
ttttf�y^t�d||��Yn0dS)Nr8r[r�rrrzno path specifiedz&path is on mount %r, start on mount %rcSsg|]}|r|�qSr4r4��.0�xr4r4r5�
<listcomp>��zrelpath.<locals>.<listcomp>cSsg|]}|r|�qSr4r4r�r4r4r5r��r�rrAr))r9r:r0r1rarrrrr�ziprCr
rHrIrJ�DeprecationWarningrKrL)r3�startr!rr Z	start_absZpath_absZstart_driveZ
start_restZ
path_driveZ	path_rest�
start_list�	path_listrXZe1Ze2�rel_listr4r4r5r)�sH


�

r)c	s�|std��tttj|��}t|dt�r8d�d�d�nd�d�d��z>��fd	d
�|D�}�fdd
�|D�}zt�fdd
�|D��\}Wnty�td�d�Yn0ttdd
�|D���dkr�td��t	|d�
����\}}|���}�fdd
�|D�}�fdd
�|D�}t|�}t
|�}t|�D]*\}	}
|
||	k�r(|d|	�}�qd�q(|dt|��}|�rr|�n|}|��|�WSttf�y�tjdg|�R��Yn0dS)Nz%commonpath() arg is an empty sequencerr8r7r[rrrcs g|]}t|��������qSr4)rr;r<)r�rP)r$r!r4r5r��r�zcommonpath.<locals>.<listcomp>csg|]\}}|����qSr4r^�r�rWrP�r!r4r5r��r�c3s"|]\}}|dd��kVqdSrUr4r�r�r4r5�	<genexpr>�r�zcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathscss|]\}}|VqdSr�r4r�r4r4r5r��r�rAzPaths don't have the same drivecsg|]}|r|�kr|�qSr4r4�r�r��rr4r5r��r�csg|]}�fdd�|D��qS)csg|]}|r|�kr|�qSr4r4r�r�r4r5r�r�z)commonpath.<locals>.<listcomp>.<listcomp>r4)r�r>r�r4r5r�r�r-)ra�tuplerGr9r:r0r1r�rCrr;r�min�max�	enumerater
rHrIrKrL)rMZdrivesplits�split_pathsr	rsr3�common�s1�s2rXr�r�r4)r$rr!r5r-�sF

r-)�_isdir)N)1rr r%r!r"r$r#r&r9�sysrbrK�__all__r6rr	r
rrr
r\�__doc__rrrr�ntrg�ImportErrorrrrrr�r�rr�r�r�r'r�r��hasattrr�r(r)r-r�rr4r4r4r5�<module>sn
/8

0q2

*.2�
84

?>