AlkantarClanX12

Your IP : 3.133.109.58


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/posixpath.cpython-35.opt-2.pyc



���]?:�&@sddlZddlZddlZddlZddlTddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(g&Zd)Zd*Zd)Zd+Zd,Z	d-Z
dZd.Zd/d0�Z
d1d�Zd2d�Zd3d�Zd4d�Zd5d�Zejje_d6d�Zd7d	�Zd8d
�Zd9d�Zd:d�Zd;d�Zd<d�Zdadad=d�Zd>d�Zd?d�Z d@d%�Z!dAdB�Z"ej#dCkZ$ddDd'�Z%dEd(�Z&dS)F�N)�*�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�
commonpath�.z..�/�:z:/bin:/usr/binz	/dev/nullcCst|t�rdSdSdS)N�/r*)�
isinstance�bytes)�path�r0�./opt/alt/python35/lib64/python3.5/posixpath.py�_get_sep'sr2cCs4t|ttf�s0tdj|jj���|S)Nz2normcase() argument must be str or bytes, not '{}')r-r.�str�	TypeError�format�	__class__�__name__)�sr0r0r1r2s	cCst|�}|j|�S)N)r2�
startswith)r8rr0r0r1r=sc
Gs�t|�}|}yv|s-|dd�|xW|D]O}|j|�rR|}q4|sh|j|�ru||7}q4|||7}q4WWn1tttfk
r�tjd||��YnX|S)Nrr)r2r9�endswithr4�AttributeError�BytesWarning�genericpath�_check_arg_types)�a�prr/�br0r0r1rGs
	
cCsut|�}|j|�d}|d|�||d�}}|rk||t|�krk|j|�}||fS)N�)r2�rfind�len�rstrip)r@r�i�head�tailr0r0r1rcs!cCs@t|t�rd}d}nd}d}tj||d|�S)Nr,�.r*r))r-r.r=�	_splitext)r@rr#r0r0r1rss	cCs|dd�|fS)Nrr0)r@r0r0r1r�scCs-t|�}|j|�d}||d�S)NrB)r2rC)r@rrFr0r0r1r	�scCs^t|�}|j|�d}|d|�}|rZ||t|�krZ|j|�}|S)NrB)r2rCrDrE)r@rrFrGr0r0r1r
�scCsBytj|�}Wnttfk
r1dSYnXtj|j�S)NF)�os�lstat�OSErrorr;�stat�S_ISLNK�st_mode)r/�str0r0r1r�s
	cCs.ytj|�Wntk
r)dSYnXdS)NFT)rKrLrM)r/r0r0r1r�s

	cCs�ytj|�}Wntk
r+dSYnXtj|j�rBdSt|t�rct|d�}nt|d�}t	|�}ytj|�}Wntk
r�dSYnX|j
}|j
}||kr�dS|j}|j}||kr�dSdS)NFs..z..T)rKrLrMrNrOrPr-r.rr%�st_dev�st_ino)r/�s1�parent�s2�dev1�dev2�ino1�ino2r0r0r1r�s.
	
					c	Cs|t|t�rd}nd}|j|�s1|St|�}|j|d�}|dkrgt|�}|dkr�dtjkr�ddl}|j	tj
��j}q(tjd}noddl}|d|�}t|t�r�t|d�}y|j
|�}Wntk
r|SYnX|j}t|t�rOtj|�}d}nd}|j|�}|||d�p{|S)	N�~�~rBr�HOME�ASCIIr,r*)r-r.r9r2�findrDrK�environ�pwd�getpwuid�getuid�pw_dirr3�getpwnam�KeyError�fsencoderE)	r/�tilderrFra�userhome�name�pwent�rootr0r0r1r�s:	
			cCs�t|t�rpd|kr|StsFddl}|jd|j�atj}d}d}ttdd�}nUd|kr�|St	s�ddl}|jd|j�a	t	j}d	}d
}tj
}d}x�|||�}|s�P|jd�\}}|jd�}	|	j
|�r6|	j|�r6|	dd�}	y<|dkrgtjtj
tj|	��}
n
||	}
Wntk
r�|}Yq�X||d�}|d|�|
}t|�}||7}q�W|S)
N�$rs\$(\w+|\{[^}]*\})�{�}�environb�$z\$(\w+|\{[^}]*\})�{�}rB���)r-r.�	_varprogb�re�compiler^�search�getattrrK�_varprogr`�span�groupr9r:rg�fsdecoderfrD)r/rvrx�start�endr`rF�m�jrj�valuerHr0r0r1rsN			"
c	CsRt|t�r*d}d}d}d}nd}d}d}d}||krR|S|j|�}|r�|j|d	�r�|j|d
�r�d	}|j|�}g}xs|D]k}|||fkr�q�||ks�|r�|s�|r|d|kr|j|�q�|r�|j�q�W|}|j|�}|rH|||}|pQ|S)
Nr,�rIs..r*�r)z..��rBrt)r-r.r9r�append�popr)	r/r�empty�dot�dotdot�initial_slashes�comps�	new_comps�compr0r0r1r?s<	'
cCsOt|�sEt|t�r*tj�}ntj�}t||�}t|�S)N)rr-r.rK�getcwdb�getcwdrr)r/�cwdr0r0r1rdscCs,t|dd�|i�\}}t|�S)Nr)�
_joinrealpathr)�filenamer/�okr0r0r1r%rs"c
Cs�t|t�r$d}d}d}nd}d}d}t|�rX|dd�}|}x0|r�|j|�\}}}|s[||kr�q[||kr�|r�t|�\}}||kr�t|||�}q[|}q[t||�}t|�s|}q[||kr9||}|dk	r&q[t||�dfSd||<t|tj	|�|�\}}	|	s}t||�dfS|||<q[W|d	fS)
Nr,rIs..r*r)z..rBFT)
r-r.r�	partitionrrrr�rK�readlink)
r/�rest�seenrrrrj�_�newpathr�r0r0r1r�zsH		

!r��darwinc	Cs.|std��t|t�r6d}d}d}nd}d}d}|dkrZ|}y�dd	�t|�j|�D�}d
d	�t|�j|�D�}tt||g��}|gt|�|||d�}|s�|St|�SWn4tt	t
tfk
r)tj
d||��YnXdS)Nzno path specifiedrIr,s..r)r*z..cSsg|]}|r|�qSr0r0)�.0�xr0r0r1�
<listcomp>�s	zrelpath.<locals>.<listcomp>cSsg|]}|r|�qSr0r0)r�r�r0r0r1r��s	r')�
ValueErrorr-r.rrrDrrr4r;r<�DeprecationWarningr=r>)	r/r~rrr�
start_list�	path_listrF�rel_listr0r0r1r'�s,	""%c	s{|std��t|dt�r4d�d�nd�d�y	�fdd�|D�}y&t�fd	d
�|D��\}Wn!tk
r�td�d�YnX�fdd�|D�}t|�}t|�}|}x;t|�D]-\}}|||kr�|d|�}Pq�W|r'�n
�dd�}|�j|�SWn+tt	fk
rvt
jd
|��YnXdS)Nz%commonpath() arg is an empty sequencerr,rIr*r)csg|]}|j���qSr0)r)r�r/)rr0r1r��s	zcommonpath.<locals>.<listcomp>c3s%|]}|dd��kVqdS)NrBr0)r�r@)rr0r1�	<genexpr>�szcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathscs)g|]}�fdd�|D��qS)cs(g|]}|r|�kr|�qSr0r0)r��c)rr0r1r��s	z)commonpath.<locals>.<listcomp>.<listcomp>r0)r�r8)rr0r1r��s	r()r�r-r.�set�min�max�	enumeraterr4r;r=r>)	�paths�split_pathsrrTrV�commonrFr��prefixr0)rrr1r(�s4	&
)'rK�sysrNr=�__all__rrr#rr r!r"r$r2rrrrrrJ�__doc__rr	r
rrrrrzrurrrr%r��platformr&r'r(r0r0r0r1�<module>
sX
		
	

**4%3&