AlkantarClanX12

Your IP : 18.189.170.227


Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/os.cpython-37.opt-2.pyc

B

YI~d
��@s�ddlZddlZddlZddlmZejZddddddd	d
ddd
ddddddddgZdd�Z	dd�Z
dekr�dZdZddl
Tyddl
mZe�d�Wnek
r�YnXddlZyddl
mZWnek
r�YnXddl
Z
e�e
e
��[
n�d ek�r�d Zd!ZddlTyddlmZe�d�Wnek
�r>YnXddlZddlZe�e
e��[yddlmZWnek
�r�YnXned"��eejd#<dd$lmZmZmZmZmZmZmZm Z [e	d%��r�e!�Z"d&d'�Z#e$�Z%e#d(d)�e#d*d+�e#d,d-�e#d.d/�e#d0d1�e#d2d3�e#d4d5�e#d6d7�e#d8d9�e#d:d;�e#d<d=�e#d>d?�e#d@dA�e#dBdC�e#dBdD�e#dEd1�e%Z&e$�Z%e#d(d)�e%Z'e$�Z%e#dFdG�e#dHd+�e#dId-�e#dJdK�e#dJdL�e#dMdN�e%�(e�e#dOdP�e#dQd1�e#dRd1�e#dSdT�e	dU��r.e	dV��r.e#dWdU�e%Z)e$�Z%e#d(d)�e#d,d-�e#d.d/�e#dXdY�e#dZd+�e	d[��r~e#d\d-�e#d2d3�e#d]d1�e#d^d/�e#d.d/�e#dEd1�e#d_d/�e%Z*[%[["[#dZ+d`Z,daZ-d�ddde�Z.dfdg�Z/dhdi�Z0e�dedgdig�d�dkdl�Z1e�dl�e2ehe&k�rPe3ehe)k�rPd�dcddn�dodp�Z4dqdr�Z5e�dp�ye6Wne7k
�rriZ6YnXdsdt�Z8dudv�Z9dwdx�Z:dydz�Z;d{d|�Z<d}d~�Z=e�dtdvdxdzd|d~g�d�dd��Z>d�d�d�Z?dd�lm@Z@Gd�d��d�e@�ZAyeBZCWne7k
�rd�d��ZCYnXd�ek�r&e�d��yeDZEWne7k
�rLd�d��ZEYnXd�ek�rbe�d��d�d��ZFeF�Z6[Fd�d�d��ZGed kZHe�d��eH�r�d�d��ZIeAe6jJeIeKeIeKeCeE�ZL[Id�d�d��ZMe�d��d�d��ZNeN�\ZOZP[Ne	d���rPe	d���sPe	d���rPdZQd`ZRZSe�d�d�d�g�d�d��ZTd�d��ZUd�d��ZVd�d��ZWd�d��ZXe�d�d�d�d�g�e	d���rxd�d��ZYd�d��ZZe�d�d�g�e	d���r�d�d��Z[d�d��Z\e�d�d�g�d�d�d�Z]Gd�d��d��Z^d�d�Z_d�d��Z`e	d���s�e`Zad�ea_bGd�d��d�ejc�ZddS)��N)�_check_methods�altsep�curdir�pardir�sep�pathsep�linesep�defpath�name�path�devnull�SEEK_SET�SEEK_CUR�SEEK_END�fsencode�fsdecode�
get_exec_path�fdopen�popen�extsepcCs
|t�kS)N)�globals)r
�r�'/opt/alt/python37/lib64/python3.7/os.py�_exists'srcCs2y
t|j�Stk
r,dd�t|�D�SXdS)NcSsg|]}|ddkr|�qS)r�_r)�.0�nrrr�
<listcomp>.sz%_get_exports_list.<locals>.<listcomp>)�list�__all__�AttributeError�dir)�modulerrr�_get_exports_list*s
r#�posix�
)�*)�_exitr')�_have_functions�ntz
zno os specific module foundzos.path)rrrrr	rrrr(cCs"|tkr|tkrt�t|�dS)N)�_globalsr(�_set�add)�str�fnrrr�_addfsr/ZHAVE_FACCESSAT�accessZ
HAVE_FCHMODAT�chmodZ
HAVE_FCHOWNAT�chownZHAVE_FSTATAT�statZHAVE_FUTIMESAT�utimeZHAVE_LINKAT�linkZHAVE_MKDIRAT�mkdirZ
HAVE_MKFIFOAT�mkfifoZHAVE_MKNODAT�mknodZHAVE_OPENAT�openZHAVE_READLINKAT�readlinkZ
HAVE_RENAMEAT�renameZHAVE_SYMLINKAT�symlinkZ
HAVE_UNLINKAT�unlink�rmdirZHAVE_UTIMENSATZHAVE_FCHDIR�chdirZHAVE_FCHMODZHAVE_FCHOWNZHAVE_FDOPENDIR�listdir�scandirZHAVE_FEXECVE�execveZHAVE_FTRUNCATE�truncateZ
HAVE_FUTIMENSZHAVE_FUTIMESZHAVE_FPATHCONF�pathconf�statvfs�fstatvfsZ
HAVE_FSTATVFSZ
HAVE_LCHFLAGSZchflagsZHAVE_LCHMOD�lchownZHAVE_LCHOWNZHAVE_LUTIMESZ
HAVE_LSTATZ
MS_WINDOWS���FcCs�t�|�\}}|s t�|�\}}|r||r|t�|�s|yt||d�Wntk
rVYnXt}t|t�rpttd�}||kr|dSyt||�Wn$t	k
r�|r�t�
|�s��YnXdS)N)�exist_ok�ASCII)r�split�exists�makedirs�FileExistsErrorr�
isinstance�bytesr6�OSError�isdir)r
�moderK�head�tail�cdirrrrrO�s$


rOcCslt|�t�|�\}}|s(t�|�\}}x>|rf|rfyt|�Wntk
rTPYnXt�|�\}}q*WdS)N)r>rrMrS)r
rVrWrrr�
removedirs�s
rYcCsnt�|�\}}|r(|r(t�|�s(t|�t||�t�|�\}}|rj|rjyt|�Wntk
rhYnXdS)N)rrMrNrOr;rYrS)�old�newrVrWrrr�renames�s
r\Tccs�t|�}g}g}g}yt|�}Wn2tk
rR}z|dk	rB||�dSd}~XYnX|���x�y(yt|�}	Wntk
r�PYnXWn2tk
r�}z|dk	r�||�dSd}~XYnXy|	��}
Wntk
r�d}
YnX|
r�|�|	j�n|�|	j�|s`|
r`|�rd}n.y|	��}Wntk
�r:d}YnX|}|r`|�|	j	�q`WWdQRX|�r�|||fVt	j
t	j}
}xn|D]4}|||�}|�s�|
|��s�t||||�EdH�q�Wn0x"|D]}t||||�EdH�q�W|||fVdS)NFT)
�fspathrArS�next�
StopIteration�is_dir�appendr
�
is_symlinkr�islink�join�walk)�top�topdown�onerror�followlinks�dirs�nondirs�	walk_dirs�
scandir_it�error�entryr`�	walk_intorbrcrd�dirname�new_pathrrrres`;




re�.)�follow_symlinks�dir_fdccs�t|t�rt|d�st|�}|s.t|d|d�}t|t|d�}zB|s^t�|j	�r|t
�|t|��r|t||t|t
�|||�EdHWdt|�XdS)N�	__index__F)rtru)ru)rQ�int�hasattrr]r3r9�O_RDONLY�st�S_ISDIR�st_moder�samestat�_fwalkrR�close)rfrgrhrtru�orig_st�topfdrrr�fwalk�s!r�ccs�t|�}g}g}|s|rdng}	x�|D]�}
|
j}|r<t|�}y4|
��rd|�|�|	dk	rn|	�|
�n
|�|�Wq&tk
r�y|
��r�|�|�Wntk
r�YnXYq&Xq&W|r�||||fVx�|	dkr�|nt||	�D]�}yB|�s|�rt||dd�}n|\}}
|
jdd�}t	|t
|d�}
Wn8tk
�r^}z|dk	�rL||�w�Wdd}~XYnXz@|�szt�|t|
���r�t�
||�}t|
|||||�EdHWdt|
�Xq�W|�s�||||fVdS)NF)rurt)rt)ru)rAr
rr`rarSrb�zipr3r9ryrr}rdr~r)r��toppath�isbytesrgrhrtrmrjrk�entriesror
r��dirfd�err�dirpathrrrr~�sT


r~cGst||�dS)N)�execv)�file�argsrrr�execlsr�cGs |d}t||dd�|�dS)N���)rB)r�r��envrrr�execle sr�cGst||�dS)N)�execvp)r�r�rrr�execlp(sr�cGs |d}t||dd�|�dS)Nr�)�execvpe)r�r�r�rrr�execlpe/sr�cCst||�dS)N)�_execvpe)r�r�rrrr�8sr�cCst|||�dS)N)r�)r�r�r�rrrr�@sr�cCs|dk	rt}||f}nt}|f}t}t�|�r@||f|��dSd}t|�}tdkrft|�}tt|�}x�|D]~}t�	||�}y||f|��Wqlt
tfk
r�}	z|	}
Wdd}	~	XYqltk
r�}	z|	}
|dkr�|	}Wdd}	~	XYqlXqlW|dk	r�|�|
�dS)Nr))
rBr��environrrqrr
r�maprd�FileNotFoundError�NotADirectoryErrorrS)r�r�r��	exec_func�argrest�	saved_exc�	path_listr!�fullname�e�last_excrrrr�Ks6



r�c
Cs�ddl}|dkrt}|����|�dt�y|�d�}Wntk
rPd}YnXtr�y|d}Wnttfk
rzYnX|dk	r�t	d��|}|dk	r�t
|t�r�t|�}WdQRX|dkr�t
}|�t�S)Nr�ignore�PATHsPATHz*env cannot contain 'PATH' and b'PATH' keys)�warningsr��catch_warnings�simplefilter�BytesWarning�get�	TypeError�supports_bytes_environ�KeyError�
ValueErrorrQrRrr	rMr)r�r�r��
path_listbrrrrks.


)�MutableMappingc@sTeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)�_EnvironcCs.||_||_||_||_||_||_||_dS)N)�	encodekey�	decodekey�encodevalue�decodevalue�putenv�unsetenv�_data)�self�datar�r�r�r�r�r�rrr�__init__�sz_Environ.__init__cCs>y|j|�|�}Wntk
r2t|�d�YnX|�|�S)N)r�r�r�r�)r��key�valuerrr�__getitem__�s
z_Environ.__getitem__cCs.|�|�}|�|�}|�||�||j|<dS)N)r�r�r�r�)r�r�r�rrr�__setitem__�s

z_Environ.__setitem__cCsD|�|�}|�|�y|j|=Wntk
r>t|�d�YnXdS)N)r�r�r�r�)r�r��
encodedkeyrrr�__delitem__�s

z_Environ.__delitem__ccs(t|j�}x|D]}|�|�VqWdS)N)rr�r�)r��keysr�rrr�__iter__�s

z_Environ.__iter__cCs
t|j�S)N)�lenr�)r�rrr�__len__�sz_Environ.__len__cs$d�d��fdd��j��D���S)Nzenviron({{{}}})z, c3s*|]"\}}d���|���|��VqdS)z
{!r}: {!r}N)�formatr�r�)rr�r�)r�rr�	<genexpr>�sz$_Environ.__repr__.<locals>.<genexpr>)r�rdr��items)r�r)r�r�__repr__�s
z_Environ.__repr__cCst|�S)N)�dict)r�rrr�copy�sz
_Environ.copycCs||kr|||<||S)Nr)r�r�r�rrr�
setdefault�sz_Environ.setdefaultN)�__name__�
__module__�__qualname__r�r�r�r�r�r�r�r�r�rrrrr��s		r�cCsdS)Nr)r�r�rrr�<lambda>��r�r�cCs
t|d�S)N�)�_putenv)r�rrrr��r�r�cs�tdkrLdd�}|�t}�fdd�}i}xJt��D]\}}||||�<q2Wn(t����fdd���fdd	�}�}t}t|||�|tt�S)
Nr)cSs t|t�stdt|�j��|S)Nzstr expected, not %s)rQr-r��typer�)r�rrr�	check_str�s
z!_createenviron.<locals>.check_strcs�|���S)N)�upper)r�)�encoderrr��sz!_createenviron.<locals>.encodekeycs(t|t�stdt|�j��|��d�S)Nzstr expected, not %s�surrogateescape)rQr-r�r�r�r�)r�)�encodingrrr��s
z_createenviron.<locals>.encodecs|��d�S)Nr�)�decode)r�)r�rrr��sz_createenviron.<locals>.decode)	r
r-r�r��sys�getfilesystemencodingr�r��	_unsetenv)r�r�r�r�r�r�r)r�r�r�_createenviron�s"r�cCst�||�S)N)r�r�)r��defaultrrr�getenvsr�)r�r�cCs t|t�stdt|�j��|S)Nzbytes expected, not %s)rQrRr�r�r�)r�rrr�_check_bytess
r�cCst�||�S)N)�environbr�)r�r�rrr�getenvbsr�)r�r�cs4t���t�����fdd�}��fdd�}||fS)Ncs&t|�}t|t�r|����S|SdS)N)r]rQr-r�)�filename)r��errorsrrr&s
z_fscodec.<locals>.fsencodecs&t|�}t|t�r|����S|SdS)N)r]rQrRr�)r�)r�r�rrr2s
z_fscodec.<locals>.fsdecode)r�r��getfilesystemencodeerrors)rrr)r�r�r�_fscodec"s
r��fork�spawnvr��P_WAIT�P_NOWAIT�	P_NOWAITOcCs�t|ttf�std��|r"|ds*td��t�}|spy$|dkrJ|||�n||||�Wq�td�Yq�XnV|tkr||SxHt|d�\}}t	|�r�q~q~t
|�r�t|�St|�r�t
|�Std��q~WdS)Nzargv must be a tuple or a listrz"argv first element cannot be empty�z"Not stopped, signaled or exited???)rQ�tuplerr�r�r�r'r��waitpid�
WIFSTOPPED�WIFSIGNALED�WTERMSIG�	WIFEXITED�WEXITSTATUSrS)rUr�r�r��func�pid�wpid�stsrrr�	_spawnvefOs.
r�cCst|||dt�S)N)r�r�)rUr�r�rrrr�nscCst||||t�S)N)r�rB)rUr�r�r�rrr�spawnvewsr�cCst|||dt�S)N)r�r�)rUr�r�rrr�spawnvp�sr�cCst||||t�S)N)r�r�)rUr�r�r�rrr�spawnvpe�sr�cGst|||�S)N)r�)rUr�r�rrr�spawnl�sr�cGs|d}t|||dd�|�S)Nr�)r�)rUr�r�r�rrr�spawnle�sr�cGst|||�S)N)r�)rUr�r�rrr�spawnlp�sr�cGs|d}t|||dd�|�S)Nr�)r�)rUr�r�r�rrr�spawnlpe�sr��rr�cCs�t|t�stdt|���|dkr.td|��|dks>|dkrFtd��ddl}ddl}|dkr�|j|d|j|d�}t	|�
|j�|�S|j|d|j|d	�}t	|�
|j�|�SdS)
Nz&invalid cmd type (%s, expected string))r��wzinvalid mode %rrz+popen() does not support unbuffered streamsr�T)�shell�stdout�bufsize)r�stdinr)
rQr-r�r�r��
subprocess�io�Popen�PIPE�_wrap_close�
TextIOWrapperrr)�cmdrU�	bufferingrr�procrrrr�s$
c@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)rcCs||_||_dS)N)�_stream�_proc)r��streamrrrrr��sz_wrap_close.__init__cCs8|j��|j��}|dkr dStdkr,|S|d>SdS)Nrr)�)r
rr�waitr
)r��
returncoderrrr�s

z_wrap_close.closecCs|S)Nr)r�rrr�	__enter__�sz_wrap_close.__enter__cGs|��dS)N)r)r�r�rrr�__exit__�sz_wrap_close.__exit__cCst|j|�S)N)�getattrr
)r�r
rrr�__getattr__�sz_wrap_close.__getattr__cCs
t|j�S)N)�iterr
)r�rrrr��sz_wrap_close.__iter__N)	r�r�r�r�rrrrr�rrrrr�s	rcOs4t|t�stdt|���ddl}|j|f|�|�S)Nz&invalid fd type (%s, expected integer)r)rQrwr�r�rr9)�fdr��kwargsrrrrrs
cCs�t|ttf�r|St|�}y|�|�}Wn0tk
rXt|d�rF�ntd|j��YnXt|ttf�rl|Std�	|jt|�j���dS)N�
__fspath__z/expected str, bytes or os.PathLike object, not z7expected {}.__fspath__() to return str or bytes, not {})
rQr-rRr�rr rxr�r�r�)r�	path_type�	path_reprrrr�_fspath
s
rr]c@s&eZdZejdd��Zedd��ZdS)�PathLikecCst�dS)N)�NotImplementedError)r�rrrr2szPathLike.__fspath__cCs|tkrt|d�StS)Nr)rr�NotImplemented)�cls�subclassrrr�__subclasshook__7s
zPathLike.__subclasshook__N)r�r�r��abc�abstractmethodr�classmethodr#rrrrr.sr)rJF)TNF)rsTN)N)N)N)N)r�r�)er$r�r3rz�_collections_abcr�builtin_module_namesZ_namesrrr#r
rr$r'ra�ImportError�	posixpathrr(�extendr)Zntpath�modulesZos.pathrrrrr	rrrrr*r/�setr+�supports_dir_fd�supports_effective_idsr,�supports_fd�supports_follow_symlinksr
rrrOrYr\rer9rAr�r~r��	NameErrorr�r�r�r�r�r�r�rr�r�r�r�r�r�r�r�r�r�r�rRr�r�r�rrr�r�r�r�r�r�r�r�r�r�r�r�rrrrr]r��ABCrrrrr�<module>s~


(











































 

08

		
 
-7