AlkantarClanX12

Your IP : 3.144.6.29


Current Path : /usr/lib64/python3.8/__pycache__/
Upload File :
Current File : //usr/lib64/python3.8/__pycache__/shutil.cpython-38.opt-2.pyc

U

e5d1��@s�ddlZddlZddlZddlZddlZddlZzddlZ[dZWnek
rZdZYnXzddl	Z	[	dZ
Wnek
r�dZ
YnXzddlZ[dZWnek
r�dZYnXzddl
mZWnek
r�dZYnXzddlmZWnek
�rdZYnXejdkZdZZejdk�r2ddlZne�r@ddlZe�rJdnd	Zeed
��odej�d�ae�oteed�Zd
Zddddddddddddddddddd d!d"d#d$d%d&gZGd'd�de�ZGd(d&�d&e�ZGd)d�de�Z Gd*d�de�Z!Gd+d,�d,e�Z"Gd-d.�d.e#�Z$Gd/d0�d0e#�Z%d1d2�Z&d3d4�Z'efd5d6�Z(d�d7d�Z)d8d9�Z*d:d;�Z+d<d=�Z,dd>�d?d�Z-dd>�d@d�Z.eedA��r�dd>�dBdC�Z/ndDdC�Z/dd>�dEd�Z0dd>�dFd�Z1dd>�dGd�Z2dHd"�Z3d�dIdJ�Z4dde2ddfdKd�Z5eej6dL��rdMdN�Z7dOdP�Z8ndQdN�Z7dRdP�Z8dSdT�Z9dUdV�Z:ej;ejej<ej=hej>k�obej?ej@k�obejejAkZBd�dWd�ZCeBeC_DdXdY�ZEe2fdZd�ZFd[d\�ZGd]d^�ZHd_d`�ZIdadb�ZJd�ddde�ZKd�dfdg�ZLdheKdigdjfiZMe�r�eKdkgdlfeMdm<eLgdnfeMdo<e
�reKdpgdqfeMdr<e�reKdsgdtfeMdu<dvd�ZNd�dxd�ZOdyd�ZPd�dzd�ZQd{d�ZRd|d}�ZSd�d~d�ZTdd �ZUd�d��ZVd�d��ZWdd��d�d��ZXd�geXgdjfd�geWgdnfd��ZYe�r�d�d�geXgdlfeYdm<e
�r�d�d�geXgdqfeYdr<e�r�d�d�geXgdtfeYdu<d�d��ZZd�dd��d�d!�Z[eed���rHe�\d��e�]d�d��Z^d�e^j__`d�e^ja_`d�e^jb_`d�d��Zcn$e�rle�\d��e�]d�d��Z^d�d��Zcd�d�d#�Zdd�d�d%�Zed�d��ZfejgejhBdfd�d$�ZidS)��NTF)�getpwnam)�getgrnam�nt�posixii�sendfileZlinux�
_fcopyfilez%.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS;.MSC�copyfileobj�copyfile�copymode�copystat�copy�copy2�copytree�move�rmtree�Error�SpecialFileError�	ExecError�make_archive�get_archive_formats�register_archive_format�unregister_archive_format�get_unpack_formats�register_unpack_format�unregister_unpack_format�unpack_archive�ignore_patterns�chown�which�get_terminal_size�
SameFileErrorc@seZdZdS)rN��__name__�
__module__�__qualname__�r%r%�/usr/lib64/python3.8/shutil.pyrEsc@seZdZdS)r Nr!r%r%r%r&r Hsc@seZdZdS)rNr!r%r%r%r&rKsc@seZdZdS)rNr!r%r%r%r&rOsc@seZdZdS)�	ReadErrorNr!r%r%r%r&r'Rsr'c@seZdZdS)�
RegistryErrorNr!r%r%r%r&r(Usr(c@seZdZdS)�_GiveupOnFastCopyNr!r%r%r%r&r)Ysr)c
Cs�z|��}|��}Wn*tk
r>}zt|��W5d}~XYnXzt�|||�WnTtk
r�}z6|j|_|j|_|j	t	j
t	jhkr�t|��n|d�W5d}~XYnXdS�N)�fileno�	Exceptionr)rr�OSError�name�filename�	filename2�errno�EINVAL�ENOTSUP)�fsrc�fdst�flags�infd�outfd�errr%r%r&�_fastcopy_fcopyfile^s
r:c
CsDz|��}|��}Wn*tk
r>}zt|��W5d}~XYnXztt�|�jd�}Wntk
rnd}YnXtj	dkr�t
|d�}d}zt�||||�}Wn�tk
�r&}zj|j|_
|j|_|jtjkr�dat|��|jtjkr�|d�|dk�rt�|dtj�dk�rt|��|�W5d}~XYq�X|dk�r6�q@||7}q�dS)Ni�ili@rF)r+r,r)�max�os�fstat�st_sizer-�sys�maxsize�minrr.r/r0r1ZENOTSOCK�_USE_CP_SENDFILEZENOSPC�lseek�SEEK_CUR)r4r5r7r8r9Z	blocksize�offsetZsentr%r%r&�_fastcopy_sendfilers8


 
rFc
Csn|j}|j}tt|���L}||�}|s*q`q||krV|d|��}|�|�W5QRXq||�qW5QRXdSr*)�readinto�write�
memoryview�	bytearray)r4r5�lengthZ
fsrc_readinto�
fdst_writeZmv�nZsmvr%r%r&�_copyfileobj_readinto�srNcCs0|st}|j}|j}||�}|s"q,||�qdSr*)�COPY_BUFSIZE�readrH)r4r5rKZ	fsrc_readrLZbufr%r%r&r�scCs�t|tj�rJttjd�rJztj�|��t�|��WStk
rHYdSXttjd�r~ztj�||�WStk
r|YdSXtj�	tj�
|��tj�	tj�
|��kS)N�samestatF�samefile)�
isinstancer<�DirEntry�hasattr�pathrQ�statr-rR�normcase�abspath��src�dstr%r%r&�	_samefile�s�r]cCst|tj�r|��St�|�Sr*)rSr<rTrW��fnr%r%r&�_stat�sr`cCs t|tj�r|��Stj�|�Sr*)rSr<rT�
is_symlinkrV�islinkr^r%r%r&�_islink�src��follow_symlinksc	Cs�t�d||�t||�r(td�||���d}t||g�D]j\}}zt|�}Wntk
r`Yq8Xt�	|j
�r�t|tj
�r�|jn|}td|��tr8|dkr8|j}q8|s�t|�r�t�t�|�|��n
t|d����}t|d���}t�r,z,t||tj�|WW5QR�W5QR�Stk
�r(YnXn�t�rtz(t||�|WW5QR�W5QR�Stk
�rpYnXn>t�r�|dk�r�t||t|t��|W5QR�W5QR�St ||�W5QRXW5QRX|S)Nzshutil.copyfilez{!r} and {!r} are the same filerz`%s` is a named pipe�rb�wb)!r?�auditr]r �format�	enumerater`r-rW�S_ISFIFO�st_moderSr<rTrVr�_WINDOWSr>rc�symlink�readlink�open�_HAS_FCOPYFILEr:rZ_COPYFILE_DATAr)rBrFrNrArOr)	r[r\re�	file_size�ir_�str4r5r%r%r&r	�sD

cCspt�d||�|sFt|�rFtj�|�rFttd�r@tjtj}}qRdSnt	tj
}}||�}||t�|j
��dS)Nzshutil.copymode�lchmod)r?rhrcr<rVrbrU�lstatrur`�chmodrW�S_IMODErl)r[r\reZ	stat_funcZ
chmod_funcrtr%r%r&r
!s
�	listxattrcCs�ztj||d�}Wn@tk
rR}z"|jtjtjtjfkr<�WY�dSd}~XYnX|D]j}z&tj|||d�}tj||||d�WqXtk
r�}z |jtj	tjtjtjfkr��W5d}~XYqXXqXdS�Nrd)
r<ryr-r1r3ZENODATAr2�getxattr�setxattrZEPERM)r[r\re�names�er.�valuer%r%r&�
_copyxattr7s	�r�cOsdSr*r%)�args�kwargsr%r%r&r�Osc	
s`t�d||�ddd�dd��|p6t|�o4tj�|�}|rJ�fdd�}n�fdd�}t|tj�rp|j|d�}n|d	�||d�}t�	|j
�}|d
�||j|jf|d�t
|||d�z|d�|||d�Wntk
r�YnXt|d��r\z|d
�||j|d�WnVtk
�rZ}z6dD]*}tt|��r|jtt|�k�r�qJ�q�W5d}~XYnXdS)Nzshutil.copystat)�nsrecWsdSr*r%)r�rer�r%r%r&�_nop`szcopystat.<locals>._nopcstt|��Sr*)�getattrr<�r.�r�r%r&�lookupgszcopystat.<locals>.lookupcstt|��}|tjkr|S�Sr*)r�r<�supports_follow_symlinks)r.r_r�r%r&r�ls
rdrW�utimerw�st_flagsZchflags)Z
EOPNOTSUPPr3)r?rhrcr<rVrbrSrTrWrxrl�st_atime_ns�st_mtime_nsr��NotImplementedErrorrUr�r-r1r�)	r[r\reZfollowr�rt�mode�whyr9r%r�r&rRs4�
cCsBtj�|�r"tj�|tj�|��}t|||d�t|||d�|Srz)r<rV�isdir�join�basenamer	r
�r[r\rer%r%r&r�s
cCsBtj�|�r"tj�|tj�|��}t|||d�t|||d�|Srz)r<rVr�r�r�r	rr�r%r%r&r
�s
cs�fdd�}|S)Ncs(g}�D]}|�t�||��qt|�Sr*)�extend�fnmatch�filter�set)rVr}�
ignored_names�pattern��patternsr%r&�_ignore_patterns�sz)ignore_patterns.<locals>._ignore_patternsr%)r�r�r%r�r&r�scCs>|dk	r$|t�|�dd�|D��}nt�}tj||d�g}	|tkpJ|tk}
|D�]~}|j|krbqPtj�||j�}tj�||j�}
|
r�|n|}z�|�	�}|r�tjdkr�|j
dd�}|jt
jkr�d}|�r8t�
|�}|r�t�||
�t||
|d�nBtj�|��s|�rWqP|���r,t||
||||d�n
|||
�n*|���rXt||
||||d�n
|||
�WqPtk
�r�}z|	�|jd�W5d}~XYqPtk
�r�}z|	�||
t|�f�W5d}~XYqPXqPzt||�WnJtk
�r*}z*t|d	d�dk�r|	�||t|�f�W5d}~XYnX|	�r:t|	��|S)
NcSsg|]
}|j�qSr%r�)�.0�xr%r%r&�
<listcomp>�sz_copytree.<locals>.<listcomp>)�exist_okrFrd)�
dirs_exist_okrZwinerror)r<�fspathr��makedirsr
rr.rVr�rarW�st_reparse_tag�IO_REPARSE_TAG_MOUNT_POINTrornr�exists�is_dirrrr�r�r-�append�strr�)�entriesr[r\�symlinks�ignore�
copy_function�ignore_dangling_symlinksr�r��errorsZuse_srcentryZsrcentryZsrcnameZdstnameZsrcobjrarv�linktor9r�r%r%r&�	_copytree�s`




�
� (&r�c	
CsDt�d||�t�|��}t|�}W5QRXt||||||||d�S)Nzshutil.copytree)r�r[r\r�r�r�r�r�)r?rhr<�scandir�listr�)	r[r\r�r�r�r�r�Zitrr�r%r%r&rs&
��st_file_attributescCsPz4|jdd�}t�|j�o2|jtj@o0|jtjkWStk
rJYdSXdS�NFrd)rW�S_ISDIRrlr��FILE_ATTRIBUTE_REPARSE_POINTr�r�r-)�entryrtr%r%r&�
_rmtree_isdir6s
�r�cCsLz0t�|�}t�|j�p.|jtj@o.|jtjkWSt	k
rFYdSXdS)NF)
r<rvrW�S_ISLNKrlr�r�r�r�r-)rVrtr%r%r&�_rmtree_islink?s

�r�cCs*z|jdd�WStk
r$YdSXdSr�)r�r-)r�r%r%r&r�HscCstj�|�Sr*)r<rVrb)rVr%r%r&r�Nsc	Cs&z"t�|��}t|�}W5QRXWn*tk
rL|tj|t���g}YnX|D]�}|j}t|�r�z|��rvtd��Wn,tk
r�|tjj	|t���YqRYnXt
||�qRzt�|�WqRtk
r�|tj|t���YqRXqRzt�|�Wn(tk
�r |tj|t���YnXdS)N�%Cannot call rmtree on a symbolic link)
r<r�r�r-r?�exc_inforVr�rarb�_rmtree_unsafe�unlink�rmdir)rV�onerror�
scandir_itr�r��fullnamer%r%r&r�Rs0

r�c
Cs.z"t�|��}t|�}W5QRXWn@tk
rb}z"||_|tj|t���WY�dSd}~XYnX|D�]�}tj�||j	�}z|j
dd�}Wntk
r�d}YnNX|r�z|jdd�}	t�|	j
�}Wn*tk
r�|tj|t���YqhYnX|�r�ztj|j	tj|d�}
Wn(tk
�r:|tj|t���Yn�Xz�tj�|	t�|
���r�t|
||�ztj|j	|d�Wn(tk
�r�|tj|t���YnXn8ztd��Wn*tk
�r�|tjj|t���YnXW5t�|
�Xqhztj|j	|d�Wqhtk
�r&|tj|t���YqhXqhdS)NFrd)�dir_fdr�)r<r�r�r-r/r?r�rVr�r.r�rWr�rlrvrp�O_RDONLY�closerQr=�_rmtree_safe_fdr�rbr�)�topfdrVr�r�r�r9r�r�r��orig_st�dirfdr%r%r&r�qsR


r�c	Cs�t�d|�|rdd�}n|dkr*dd�}t�r`t|t�rDt�|�}zt�|�}Wn(tk
rz|tj|t�	��YdSXzt�
|tj�}Wn(tk
r�|tj
|t�	��YdSXz�tj
�|t�|���rt|||�zt�|�Wn(tk
�r|tj|t�	��YnXn8ztd��Wn*tk
�rL|tj
j|t�	��YnXW5t�|�XnNzt|��rttd��Wn,tk
�r�|tj
j|t�	��YdSXt||�SdS)Nz
shutil.rmtreecWsdSr*r%�r�r%r%r&r��szrmtree.<locals>.onerrorcWs�dSr*r%r�r%r%r&r��sr�)r?rh�_use_fd_functionsrS�bytesr<�fsdecodervr,r�rpr�r�rVrQr=r�r�r-rbr�r�)rV�
ignore_errorsr�r��fdr%r%r&r�sJ



cCs&tjjtjjpd}tj�|�|��S)N�)r<rV�sep�altsepr��rstrip)rVr�r%r%r&�	_basename�sr�c	CsTt�d||�|}tj�|�rbt||�r8t�||�dStj�|t|��}tj�	|�rbt
d|��zt�||�Wn�tk
�rNtj�|�r�t�
|�}t�||�t�|�n�tj�|��r6t||�r�t
d||f��t|��st�|tj��st�|��rtjdk�rtd||f��t|||dd�t|�n|||�t�|�YnX|S)Nzshutil.movez$Destination path '%s' already existsz.Cannot move a directory '%s' into itself '%s'.�darwinzKCannot move the non-empty directory '%s': Lacking write permission to '%s'.T)r�r�)r?rhr<rVr�r]�renamer�r�r�rr-rbrornr��
_destinsrc�
_is_immutable�access�W_OK�listdir�platform�PermissionErrorrr)r[r\r�Zreal_dstr�r%r%r&r�sL


�
�����

cCsVtj�|�}tj�|�}|�tjj�s2|tjj7}|�tjj�sL|tjj7}|�|�Sr*)r<rVrY�endswithr��
startswithrZr%r%r&r�/sr�cCs(t|�}tjtjg}t|d�o&|j|kS)Nr�)r`rW�UF_IMMUTABLE�SF_IMMUTABLErUr�)r[rtZimmutable_statesr%r%r&r�8sr�cCsNtdks|dkrdSzt|�}Wntk
r8d}YnX|dk	rJ|dSdS�N�)r�KeyError�r.�resultr%r%r&�_get_gid=s
r�cCsNtdks|dkrdSzt|�}Wntk
r8d}YnX|dk	rJ|dSdSr�)rr�r�r%r%r&�_get_uidIs
r��gzipcs |dkrd}nDtr |dkr d}n2tr2|dkr2d}n trD|dkrDd}ntd�|���ddl}	|rfd	|nd}
|d
|
}tj�|�}|r�tj�	|�s�|dk	r�|�
d|�|s�t�|�|dk	r�|�
d�t���t
�������fd
d�}
|�s|	�|d|�}z|j||
d�W5|��X|S)Nr�r�Zgz�bzip2�bz2�xzzCbad value for 'compress', or compression format not supported : {0}r�.�.tar�creating %szCreating tar archivecs,�dk	r�|_�|_�dk	r(�|_�|_|Sr*)�gidZgname�uid�uname)Ztarinfo�r��group�ownerr�r%r&�_set_uid_gid�sz#_make_tarball.<locals>._set_uid_gidzw|%s�r�)�_ZLIB_SUPPORTED�_BZ2_SUPPORTED�_LZMA_SUPPORTED�
ValueErrorri�tarfiler<rV�dirnamer��infor�r�r�rpr��add)�	base_name�base_dir�compress�verbose�dry_runr�r��loggerZtar_compressionr�Zcompress_extZarchive_name�archive_dirr��tarr%r�r&�
_make_tarballUs>�

	
r
c	Csnddl}|d}tj�|�}|rNtj�|�sN|dk	r@|�d|�|sNt�|�|dk	rd|�d||�|�sj|j|d|jd���}tj�	|�}	|	tj
kr�|�|	|	�|dk	r�|�d|	�t�|�D]�\}
}}t
|�D]:}
tj�	tj�|
|
��}	|�|	|	�|dk	r�|�d|	�q�|D]L}
tj�	tj�|
|
��}	tj�|	��r|�|	|	�|dk	�r|�d|	��qq�W5QRX|S)Nr�.zipr�z#creating '%s' and adding '%s' to it�w)Zcompressionzadding '%s')�zipfiler<rVr�r�rr��ZipFileZZIP_DEFLATED�normpath�curdirrH�walk�sortedr��isfile)rrrrrr
Zzip_filenamerZzfrV�dirpathZdirnames�	filenamesr.r%r%r&�
_make_zipfile�sH
��

rr	)rNzuncompressed tar file)rr�zgzip'ed tar-fileZgztarzZIP file�zip)rr�zbzip2'ed tar-fileZbztar)rr�zxz'ed tar-fileZxztarcCsdd�t��D�}|��|S)NcSsg|]\}}||df�qS)r�r%)r�r.�registryr%r%r&r��sz'get_archive_formats.<locals>.<listcomp>)�_ARCHIVE_FORMATS�items�sort�Zformatsr%r%r&r�s
�r�cCst|dkrg}t|�s td|��t|ttf�s6td��|D]&}t|ttf�rXt|�dkr:td��q:|||ft|<dS)NzThe %s object is not callablez!extra_args needs to be a sequencer�z+extra_args elements are : (arg_name, value))�callable�	TypeErrorrS�tupler��lenr)r.�function�
extra_args�descriptionZelementr%r%r&r�s	
cCs
t|=dSr*)rr�r%r%r&r�sc	
Cst�d||||�t��}	|dk	rP|dk	r6|�d|�tj�|�}|sPt�|�|dkr^tj}||d�}
zt	|}Wn"t
k
r�td|�d�YnX|d}|dD]\}
}||
|
<q�|dkr�||
d<||
d	<z|||f|
�}W5|dk	�r|dk	�r|�d
|	�t�|	�X|S)Nzshutil.make_archivezchanging into '%s')rrzunknown archive format '%s'r�rr�r�zchanging back to '%s')r?rhr<�getcwd�debugrVrY�chdirrrr�r�)rriZroot_dirrrrr�r�rZsave_cwdr��format_info�func�arg�valr/r%r%r&r�s8




cCsdd�t��D�}|��|S)NcSs"g|]\}}||d|df�qS)r�r%)r�r.rr%r%r&r�3sz&get_unpack_formats.<locals>.<listcomp>)�_UNPACK_FORMATSrrrr%r%r&r-s
�c	Csji}t��D]\}}|dD]}|||<qq|D]$}||kr0d}t||||f��q0t|�sftd��dS)Nrz!%s is already registered for "%s"z*The registered function must be a callable)r-rr(rr)	�
extensionsr!r"Zexisting_extensionsr.r�ext�	extension�msgr%r%r&�_check_unpack_options8s�
r2cCs,|dkrg}t|||�||||ft|<dSr*)r2r-)r.r.r!r"r#r%r%r&rJscCs
t|=dSr*)r-r�r%r%r&r`scCs&tj�|�}tj�|�s"t�|�dSr*)r<rVr�r�r�)rVr�r%r%r&�_ensure_directorydsr3c		Cs�ddl}|�|�std|��|�|�}z�|��D]�}|j}|�d�s2d|krPq2tj	j
|f|�d���}|snq2t|�|�
d�s2|�|j�}t|d�}z|�|�W5|��~Xq2W5|��XdS)Nrz%s is not a zip file�/z..rg)r
Z
is_zipfiler'rr�Zinfolistr/r�r<rVr��splitr3r�rPrprH)	r/�extract_dirr
rrr.�target�data�fr%r%r&�_unpack_zipfilejs*




r:r�cCs\ddl}z|�|�}Wn"|jk
r8td|��YnXz|j||d�W5|��XdS)Nrz/%s is not a compressed or uncompressed tar filer�)r�rpZTarErrorr'r�Z
extractall)r/r6r�r�Ztarobjr%r%r&�_unpack_tarfile�s�
r;r�r)r	rz.tar.gzz.tgzz.tar.bz2z.tbz2z.tar.xzz.txzcCs:t��D],\}}|dD]}|�|�r|SqqdS)Nr)r-rr�)r/r.rr0r%r%r&�_find_unpack_format�s

r<cCs�t�d|||�|dkr t��}t�|�}t�|�}|dkrBi}nd|i}|dk	r�zt|}Wn$tk
r�td�|��d�YnX|d}|||ft	|d�|��nRt
|�}|dkr�td�|���t|d}t	t|d�}|�|�|||f|�dS)Nzshutil.unpack_archiver�zUnknown unpack format '{0}'r$r�zUnknown archive format '{0}')
r?rhr<r%r�r-r�r�ri�dictr<r'�update)r/r6rir�Z
filter_kwargsr(r)r�r%r%r&r�s,


�statvfs�
disk_usageZusageztotal used freezTotal space in byteszUsed space in byteszFree space in bytescCs@t�|�}|j|j}|j|j}|j|j|j}t|||�Sr*)r<r?�f_bavail�f_frsize�f_blocks�f_bfree�_ntuple_diskusage)rVrt�free�total�usedr%r%r&r@�s

cCs"t�|�\}}||}t|||�Sr*)rZ
_getdiskusagerE)rVrGrFrHr%r%r&r@�scCs�t�d|||�|dkr(|dkr(td��|}|}|dkr>d}n(t|t�rft|�}|dkrftd�|���|dkrtd}n(t|t�s�t	|�}|dkr�td�|���t
�|||�dS)Nzshutil.chownzuser and/or group must be set���zno such user: {!r}zno such group: {!r})r?rhr�rSr�r��LookupErrorri�intr�r<r)rV�userr�Z_userZ_groupr%r%r&rs$

��P�c
Cs�zttjd�}Wnttfk
r.d}YnXzttjd�}Wnttfk
r^d}YnX|dksp|dkr�zt�tj���}Wn$t	tt
fk
r�t�|�}YnX|dkr�|j}|dkr�|j
}t�||f�S)NZCOLUMNSrZLINES)rKr<�environr�r�rr?�
__stdout__r+�AttributeErrorr-�
terminal_size�columns�lines)ZfallbackrTrU�sizer%r%r&r(s$

cCs&tj�|�o$t�||�o$tj�|�Sr*)r<rVr�r�r�)r_r�r%r%r&�
_access_checkYs�rWc
	s�tj���rt�|�r�SdSt�t�}|dkrttj�dd�}|dkrtzt�d�}Wnt	t
fk
rrtj}YnX|s|dS|r�t�|�}|�
t�tj��}nt�|�}|�
tj�}tjdk�rTtj}|r�t�|�}||kr�|�d|�t�d�p�t}dd�|�
tj�D�}|�r dd�|D�}t�fd	d
�|D���r@�g}n�fdd�|D�}n�g}t�}|D]X}	tj�|	�}
|
|k�rd|�|
�|D],}tj�|	|�}t||��r�|S�q��qddS)N�PATH�CS_PATHZwin32rZPATHEXTcSsg|]}|r|�qSr%r%�r�r/r%r%r&r��szwhich.<locals>.<listcomp>cSsg|]}t�|��qSr%)r<�fsencoderZr%r%r&r��sc3s |]}����|���VqdSr*)�lowerr�rZ��cmdr%r&�	<genexpr>�szwhich.<locals>.<genexpr>csg|]}�|�qSr%r%rZr]r%r&r��s)r<rVr�rWrSr�rP�get�confstrrRr��defpathr[r5�pathsepr�r?r�r�insert�getenv�_WIN_DEFAULT_PATHEXT�anyr�rXrr�)
r^r�rVZ	use_bytesrZpathext_sourceZpathext�files�seen�dirZnormdirZthefiler.r%r]r&r^sV







)r)F)FN)r�rrNNN)rrN)Nr�)NNrrNNN)Nr�)NN)NN)rM)jr<r?rWr��collectionsr1�zlibr��ImportErrorr�r�Zlzmar��pwdrZgrprr.rmrrrOrUr�r�rBrqrf�__all__r-rr rrr'r,r(r)r:rFrNrr]r`rcr	r
r�rrr
rr�r�stat_resultr�r�r�r�rpr�r��supports_dir_fdr��supports_fdr�r�rZavoids_symlink_attacksr�rr�r�r�r�r
rrrrrrrr2rrr3r:r;r-r<rr��
namedtuplerErG�__doc__rHrFr@rrrW�F_OK�X_OKrr%r%r%r&�<module>sr






�
@

7B
�
A�
.	
	4�
�
�
>?	�
A
-
����

�
8�
"�
�
�
�2



 
1