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KO}ӽmSşذqsOy?\[,d@'73'j%kOe`1.g2"e =YIzS2|zŐƄa\U,dP;jhhhaxǶ?КZ՚.q SE+XrbOu%\GتX(H,N^~]JyEZQKceTQ]VGYqnah;y$cQahT&QPZ*iZ8UQQM.qo/T\7X"u?Mttl2Xq(IoW{R^ ux*SYJ! 4S.Jy~ BROS[V|žKNɛP(L6V^|cR7i7nZW1Fd@ Ara{詑|(T*dN]Ko?s=@ |_EvF]׍kR)eBJc" MUUbY6`~V޴dJKß&~'d3i WWWWWW
Current Directory: /usr/lib64/python3.6/__pycache__
Viewing File: /usr/lib64/python3.6/__pycache__/shutil.cpython-36.opt-1.pyc
3 ai}��A@s�dZddlZddlZddlZddlZddlZddlZyddlZ[dZWne k r^dZYnXyddl Z [ dZ Wne k r�dZ YnXyddl Z [ dZ Wne k r�dZ YnXyddlmZWne k r�dZYnXyddlmZWne k �r dZYnXddd d d d d ddddddddddddddddddgZGd d�de�ZGd!d�de�ZGd"d�de�ZGd#d�de�ZGd$d%�d%e�ZGd&d'�d'e�Zd�d*d�Zd+d,�Zdd-�d.d�Zdd-�d/d �Zeed0��r�dd-�d1d2�Z nd3d2�Z dd-�d4d �Z!dd-�d5d �Z"dd-�d6d �Z#d7d�Z$dde#dfd8d �Z%d9d:�Z&d;d<�Z'ej(ejej)ej*hej+k�o~ej,ej-k�o~ejej.kZ/d�d=d�Z0e/e0_1d>d?�Z2e#fd@d�Z3dAdB�Z4dCdD�Z5dEdF�Z6d�dHdI�Z7d�dJdK�Z8dLe7d�gdNfiZ9e�re7d�gdOfe9dP<e8gdQfe9dR<e �re7d�gdTfe9dU<e �r0e7d�gdWfe9dX<dYd�Z:d�d[d�Z;d\d�Z<d�d]d�Z=d^d�Z>d_d`�Z?d�dad�Z@dbd�ZAdcdd�ZBdedf�ZCddg�dhdi�ZDdjgeDgdNfdkgeCgdQfdl�ZEe�r�dmdngeDgdOfeEdP<e �r�dodpgeDgdTfeEdU<e �rdqdrgeDgdWfeEdX<dsdt�ZFd�ddg�dud�ZGeedv��r\ejHdw�ejIdxdy�ZJdzeJjK_d{eJjL_d|eJjM_d}dw�ZNn2ejOd~k�r�ddlPZPejHdw�ejIdxdy�ZJddw�ZNd�d�d�ZQd�d�d�ZRejSejTBdfd�d�ZUdS)�z�Utility functions for copying and archiving files and directory trees. XXX The functions here don't copy the resource fork or other metadata on Mac. �NTF)�getpwnam)�getgrnam� 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)r N)�__name__� __module__� __qualname__�r r �/usr/lib64/python3.6/shutil.pyr 7sc@seZdZdZdS)rz5Raised when source and destination are the same file.N)rrr�__doc__r r r r!r:sc@seZdZdZdS)rz|Raised when trying to do a kind of operation (e.g. copying) which is not supported on a special file (e.g. a named pipe)N)rrrr"r r r r!r=sc@seZdZdZdS)rz+Raised when a command could not be executedN)rrrr"r r r r!rAsc@seZdZdZdS)� ReadErrorz%Raised when an archive cannot be readN)rrrr"r r r r!r#Dsr#c@seZdZdZdS)� RegistryErrorzVRaised when a registry operation with the archiving and unpacking registries failsN)rrrr"r r r r!r$Gsr$�icCs$x|j|�}|sP|j|�qWdS)z=copy data from file-like object fsrc to file-like object fdstN)�read�write)�fsrc�fdstZlengthZbufr r r!rLs  c CsXttjd�r0ytjj||�Stk r.dSXtjjtjj|��tjjtjj|��kS)N�samefileF)�hasattr�os�pathr*�OSError�normcase�abspath)�src�dstr r r!� _samefileTs r3)�follow_symlinkscCs�t||�rtdj||���xL||gD]@}ytj|�}Wntk rJYq$Xtj|j�r$td|��q$W| r�tj j |�r�tj tj |�|�n6t |d��&}t |d��}t||�WdQRXWdQRX|S)z�Copy data from src to dst. If follow_symlinks is not set and src is a symbolic link, a new symlink will be created instead of copying the file it points to. z{!r} and {!r} are the same filez`%s` is a named pipe�rb�wbN)r3r�formatr,�statr.�S_ISFIFO�st_moderr-�islink�symlink�readlink�openr)r1r2r4�fn�str(r)r r r!r`s    cCsz| r>tjj|�r>tjj|�r>ttd�r8tjtj}}q\dSnttd�rXtjtj}}ndS||�}||tj|j ��dS)z�Copy mode bits from src to dst. If follow_symlinks is not set, symlinks aren't followed if and only if both `src` and `dst` are symlinks. If `lchmod` isn't available (e.g. Linux) this method does nothing. �lchmodN�chmod) r,r-r;r+�lstatrAr8rB�S_IMODEr:)r1r2r4Z stat_funcZ chmod_funcr@r r r!r}s  � listxattrcCs�ytj||d�}Wn4tk rF}z|jtjtjfkr8�dSd}~XnXxn|D]f}y&tj|||d�}tj||||d�WqNtk r�}z|jtjtjtjfkr��WYdd}~XqNXqNWdS)z�Copy extended filesystem attributes from `src` to `dst`. Overwrite existing attributes. If `follow_symlinks` is false, symlinks won't be followed. )r4N) r,rEr.�errno�ENOTSUPZENODATA�getxattr�setxattrZEPERM)r1r2r4�names�e�name�valuer r r!� _copyxattr�s  rNcOsdS)Nr )�args�kwargsr r r!rN�sc s6ddd�dd��|p,tjj|�o*tjj|� }|r@�fdd�}n �fdd�}|d�||d �}tj|j�}|d �||j|jf|d�y|d �|||d �Wntk r�YnXt |d ��r$y|d �||j |d �WnPt k �r"}z2x*dD] }t t |�r�|j t t |�kr�Pq�W�WYdd}~XnXt|||d �dS)a�Copy file metadata Copy the permission bits, last access time, last modification time, and flags from `src` to `dst`. On Linux, copystat() also copies the "extended attributes" where possible. The file contents, owner, and group are unaffected. `src` and `dst` are path names given as strings. If the optional flag `follow_symlinks` is not set, symlinks aren't followed if and only if both `src` and `dst` are symlinks. N)�nsr4cWsdS)Nr )rQr4rOr r r!�_nop�szcopystat.<locals>._nopcs tt|��S)N)�getattrr,)rL)rRr r!�lookup�szcopystat.<locals>.lookupcstt|��}|tjkr|S�S)N)rSr,�supports_follow_symlinks)rLr?)rRr r!rT�s  r8)r4�utimerB�st_flagsZchflags� EOPNOTSUPPrG)rXrG)r,r-r;r8rDr:� st_atime_ns� st_mtime_ns�NotImplementedErrorr+rWr.rFrSrN) r1r2r4ZfollowrTr@�mode�why�errr )rRr!r�s,      cCsBtjj|�r"tjj|tjj|��}t|||d�t|||d�|S)a3Copy data and mode bits ("cp src dst"). Return the file's destination. The destination may be a directory. If follow_symlinks is false, symlinks won't be followed. This resembles GNU's "cp -P src dst". If source and destination are the same file, a SameFileError will be raised. )r4)r,r-�isdir�join�basenamerr)r1r2r4r r r!r�s cCsBtjj|�r"tjj|tjj|��}t|||d�t|||d�|S)a1Copy data and metadata. Return the file's destination. Metadata is copied with copystat(). Please see the copystat function for more information. The destination may be a directory. If follow_symlinks is false, symlinks won't be followed. This resembles GNU's "cp -P src dst". )r4)r,r-r_r`rarr)r1r2r4r r r!r �s cs�fdd�}|S)z�Function that can be used as copytree() ignore parameter. Patterns is a sequence of glob-style patterns that are used to exclude filescs,g}x�D]}|jtj||��q Wt|�S)N)�extend�fnmatch�filter�set)r-rJ� ignored_names�pattern)�patternsr r!�_ignore_patternss z)ignore_patterns.<locals>._ignore_patternsr )rhrir )rhr!r s cCs�tj|�}|dk r|||�}nt�}tj|�g}�xB|D�]8} | |krJq:tjj|| �} tjj|| �} y�tjj| �r�tj| �} |r�tj| | �t | | | d�n<tjj | � r�|r�w:tjj | �r�t | | |||�n || | �n(tjj | �r�t | | |||�n || | �Wq:t k �r<} z|j| jd�WYdd} ~ Xq:tk �rr}z|j| | t|�f�WYdd}~Xq:Xq:Wyt ||�WnJtk �r�}z,t|dd�dk�r�|j||t|�f�WYdd}~XnX|�r�t |��|S)a�Recursively copy a directory tree. The destination directory must not already exist. If exception(s) occur, an Error is raised with a list of reasons. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, the contents of the files pointed to by symbolic links are copied. If the file pointed by the symlink doesn't exist, an exception will be added in the list of errors raised in an Error exception at the end of the copy process. You can set the optional ignore_dangling_symlinks flag to true if you want to silence this exception. Notice that this has no effect on platforms that don't support os.symlink. The optional ignore argument is a callable. If given, it is called with the `src` parameter, which is the directory being visited by copytree(), and `names` which is the list of `src` contents, as returned by os.listdir(): callable(src, names) -> ignored_names Since copytree() is called recursively, the callable will be called once for each directory that is copied. It returns a list of names relative to the `src` directory that should not be copied. The optional copy_function argument is a callable that will be used to copy each file. It will be called with the source path and the destination path as arguments. By default, copy2() is used, but any function that supports the same signature (like copy()) can be used. N)r4rZwinerror)r,�listdirre�makedirsr-r`r;r=r<r�existsr_r r rbrOr.�append�strrS)r1r2�symlinks�ignore� copy_functionZignore_dangling_symlinksrJrf�errorsrLZsrcnameZdstname�linktor^r]r r r!r sL$           *&c$CsLytjj|�rtd��Wn(tk r@|tjj|tj��dSXg}ytj|�}Wn&tk rz|tj|tj��YnXx�|D]�}tjj||�}ytj|�j }Wntk r�d}YnXt j |�r�t ||�q�ytj |�Wq�tk �r |tj |tj��Yq�Xq�Wytj|�Wn(tk �rF|tj|tj��YnXdS)Nz%Cannot call rmtree on a symbolic linkr)r,r-r;r.�sys�exc_inforjr`rCr:r8�S_ISDIR�_rmtree_unsafe�unlink�rmdir)r-�onerrorrJrL�fullnamer\r r r!rwqs6      rwc 0Cs�g}ytj|�}Wn:tk rL}z||_|tj|tj��WYdd}~XnX�x�|D�]x}tjj||�}ytj||dd�}|j }Wntk r�d}YnXtj |��r�ytj |tj |d�} Wn&tk r�|tj |tj��Yn�Xz�tjj |tj| ���rJt| ||�ytj||d�Wn(tk �rF|tj|tj��YnXn8y td��Wn*tk �r�|tjj|tj��YnXWdtj| �XqVytj||d�WqVtk �r�|tj|tj��YqVXqVWdS)NF)�dir_fdr4r)r|z%Cannot call rmtree on a symbolic link)r,rjr.�filenamertrur-r`r8r:rvr>�O_RDONLY�samestat�fstat�_rmtree_safe_fdryr;�closerx) �topfdr-rzrJr^rLr{�orig_str\�dirfdr r r!r��sD$     r�c!Cs^|rdd�}n|dkrdd�}t�rPt|t�r8tj|�}ytj|�}Wn&tk rl|tj|tj��dSXytj |tj �}Wn&tk r�|tj|tj��dSXz�tj j |tj |���rt|||�ytj|�Wn(tk �r|tj|tj��YnXn8y td��Wn*tk �r<|tj j|tj��YnXWdtj|�Xn t||�SdS)a�Recursively delete a directory tree. If ignore_errors is set, errors are ignored; otherwise, if onerror is set, it is called to handle the error with arguments (func, path, exc_info) where func is platform and implementation dependent; path is the argument to that function that caused it to fail; and exc_info is a tuple returned by sys.exc_info(). If ignore_errors is false and onerror is None, an exception is raised. cWsdS)Nr )rOr r r!rz�szrmtree.<locals>.onerrorNcWs�dS)Nr )rOr r r!rz�sz%Cannot call rmtree on a symbolic link)�_use_fd_functions� isinstance�bytesr,�fsdecoderC� Exceptionrtrur>r~r-rr�r�ryr.r;r�rw)r-� ignore_errorsrzr��fdr r r!r �s<      cCs&tjjtjjpd}tjj|j|��S)N�)r,r-�sep�altsepra�rstrip)r-r�r r r!� _basename�sr�c Cs|}tjj|�rTt||�r*tj||�dStjj|t|��}tjj|�rTtd|��ytj||�Wn�t k r�tjj |�r�tj |�}tj ||�tj |�nTtjj|�r�t||�r�td||f��t|||dd�t|�n|||�tj |�YnX|S)a+Recursively move a file or directory to another location. This is similar to the Unix "mv" command. Return the file or directory's destination. If the destination is a directory or a symlink to a directory, the source is moved inside the directory. The destination path must not already exist. If the destination already exists but is not a directory, it may be overwritten depending on os.rename() semantics. If the destination is on our current filesystem, then rename() is used. Otherwise, src is copied to the destination and then removed. Symlinks are recreated under the new name if os.rename() fails because of cross filesystem renames. The optional `copy_function` argument is a callable that will be used to copy the source or it will be delegated to `copytree`. By default, copy2() is used, but any function that supports the same signature (like copy()) can be used. A lot more could be done here... A look at a mv.c shows a lot of the issues this implementation glosses over. Nz$Destination path '%s' already existsz.Cannot move a directory '%s' into itself '%s'.T)rqro)r,r-r_r3�renamer`r�rlr r.r;r=r<rx� _destinsrcr r )r1r2rqZreal_dstrsr r r!r s2              cCsVtjj|�}tjj|�}|jtjj�s2|tjj7}|jtjj�sL|tjj7}|j|�S)N)r,r-r0�endswithr�� startswith)r1r2r r r!r�8s    r�c CsNtdks|dkrdSy t|�}Wntk r8d}YnX|dk rJ|dSdS)z"Returns a gid, given a group name.N�)r�KeyError)rL�resultr r r!�_get_gidAs  r�c CsNtdks|dkrdSy t|�}Wntk r8d}YnX|dk rJ|dSdS)z"Returns an uid, given a user name.Nr�)rr�)rLr�r r r!�_get_uidMs  r��gzipc s"|dkrd}nDtr |dkr d}n2tr2|dkr2d}n trD|dkrDd}ntdj|���d dl} |rfd |nd} |d | } tjj| �} | r�tjj | � r�|dk r�|j d | �|s�tj | �|dk r�|j d �t ���t �������fdd�} |�s| j| d|�}z|j|| d�Wd|j�X| S)a�Create a (possibly compressed) tar file from all the files under 'base_dir'. 'compress' must be "gzip" (the default), "bzip2", "xz", or None. 'owner' and 'group' can be used to define an owner and a group for the archive that is being built. If not provided, the current owner and group will be used. The output tar file will be named 'base_name' + ".tar", possibly plus the appropriate compression extension (".gz", ".bz2", or ".xz"). Returns the output filename. Nr�r�Zgz�bzip2�bz2�xzzCbad value for 'compress', or compression format not supported : {0}r�.z.tarz creating %szCreating tar archivecs,�dk r�|_�|_�dk r(�|_�|_|S)N)�gidZgname�uid�uname)Ztarinfo)r��group�ownerr�r r!� _set_uid_gid�sz#_make_tarball.<locals>._set_uid_gidzw|%s)rd)�_ZLIB_SUPPORTED�_BZ2_SUPPORTED�_LZMA_SUPPORTED� ValueErrorr7�tarfiler,r-�dirnamerl�inforkr�r�r>�addr�)� base_name�base_dir�compress�verbose�dry_runr�r��loggerZtar_compressionr�Z compress_extZ archive_name� archive_dirr��tarr )r�r�r�r�r!� _make_tarballYs<          r�c Cs|ddl}|d}tjj|�}|rPtjj|� rP|dk rB|jd|�|sPtj|�|dk rf|jd||�|�sx|j|d|jd���}tjj |�} | tj kr�|j | | �|dk r�|jd| �x�tj |�D]�\} } } xFt | �D]:} tjj tjj| | ��} |j | | �|dk r�|jd| �q�WxT| D]L} tjj tjj| | ��} tjj| ��r|j | | �|dk �r|jd| ��qWq�WWdQRX|S) z�Create a zip file from all the files under 'base_dir'. The output zip file will be named 'base_name' + ".zip". Returns the name of the output zip file. rNz.zipz creating %sz#creating '%s' and adding '%s' to it�w)Z compressionz adding '%s')�zipfiler,r-r�rlr�rk�ZipFileZ ZIP_DEFLATED�normpath�curdirr'�walk�sortedr`�isfile)r�r�r�r�r�r�Z zip_filenamer�Zzfr-�dirpathZdirnames� filenamesrLr r r!� _make_zipfile�s@             r�r�r�zuncompressed tar filezgzip'ed tar-fileZgztarzZIP file�zipr�zbzip2'ed tar-fileZbztarr�zxz'ed tar-fileZxztarcCsdd�tj�D�}|j�|S)z�Returns a list of supported formats for archiving and unarchiving. Each element of the returned sequence is a tuple (name, description) cSsg|]\}}||df�qS)r�r )�.0rL�registryr r r!� <listcomp>�sz'get_archive_formats.<locals>.<listcomp>)�_ARCHIVE_FORMATS�items�sort)�formatsr r r!r�s r�cCsz|dkr g}t|�s td|��t|ttf�s6td��x0|D](}t|ttf� s\t|�dkr<td��q<W|||ft|<dS)auRegisters an archive format. name is the name of the format. function is the callable that will be used to create archives. If provided, extra_args is a sequence of (name, value) tuples that will be passed as arguments to the callable. description can be provided to describe the format, and will be returned by the get_archive_formats() function. NzThe %s object is not callablez!extra_args needs to be a sequencer�z+extra_args elements are : (arg_name, value))�callable� TypeErrorr��tuple�list�lenr�)rL�function� extra_args� description�elementr r r!r�s    cCs t|=dS)N)r�)rLr r r!r�sc Cstj�} |dk r>|dk r$|jd|�tjj|�}|s>tj|�|dkrLtj}||d�} y t|} Wn tk r�t d|��YnX| d} x| dD]\} }|| | <q�W|dkr�|| d<|| d <z| ||f| �}Wd|dk r�|dk r�|jd | �tj| �X|S) aCreate an archive file (eg. zip or tar). 'base_name' is the name of the file to create, minus any format-specific extension; 'format' is the archive format: one of "zip", "tar", "gztar", "bztar", or "xztar". Or any other registered format. 'root_dir' is a directory that will be the root directory of the archive; ie. we typically chdir into 'root_dir' before creating the archive. 'base_dir' is the directory where we start archiving from; ie. 'base_dir' will be the common prefix of all files and directories in the archive. 'root_dir' and 'base_dir' both default to the current directory. Returns the name of the archive file. 'owner' and 'group' are used when creating a tar archive. By default, uses the current owner and group. Nzchanging into '%s')r�r�zunknown archive format '%s'r�r�r�r�zchanging back to '%s') r,�getcwd�debugr-r0�chdirr�r�r�r�)r�r7Zroot_dirr�r�r�r�r�r�Zsave_cwdrP� format_info�func�arg�valr}r r r!r�s6        cCsdd�tj�D�}|j�|S)z�Returns a list of supported formats for unpacking. Each element of the returned sequence is a tuple (name, extensions, description) cSs"g|]\}}||d|df�qS)r�r )r�rLr�r r r!r�6sz&get_unpack_formats.<locals>.<listcomp>)�_UNPACK_FORMATSr�r�)r�r r r!r0s c Csvi}x.tj�D]"\}}x|dD] }|||<q WqWx,|D]$}||kr:d}t||||f��q:Wt|�srtd��dS)z+Checks what gets registered as an unpacker.rz!%s is already registered for "%s"z*The registered function must be a callableN)r�r�r$r�r�) � extensionsr�r�Zexisting_extensionsrLr��ext� extension�msgr r r!�_check_unpack_options;s r�cCs,|dkr g}t|||�||||ft|<dS)aMRegisters an unpack format. `name` is the name of the format. `extensions` is a list of extensions corresponding to the format. `function` is the callable that will be used to unpack archives. The callable will receive archives to unpack. If it's unable to handle an archive, it needs to raise a ReadError exception. If provided, `extra_args` is a sequence of (name, value) tuples that will be passed as arguments to the callable. description can be provided to describe the format, and will be returned by the get_unpack_formats() function. N)r�r�)rLr�r�r�r�r r r!rMs cCs t|=dS)z*Removes the pack format from the registry.N)r�)rLr r r!rcscCs&tjj|�}tjj|�s"tj|�dS)z1Ensure that the parent directory of `path` existsN)r,r-r�r_rk)r-r�r r r!�_ensure_directorygs  r�c Cs�ddl}|j|�std|��|j|�}z�x�|j�D]�}|j}|jd�s4d|krRq4tjj |f|j d���}|spq4t |�|j d�s4|j |j�}t|d�}z|j|�Wd|j�~Xq4WWd|j�XdS)z+Unpack zip `filename` to `extract_dir` rNz%s is not a zip file�/z..r6)r�Z is_zipfiler#r�Zinfolistr}r�r,r-r`�splitr�r�r&r>r'r�) r}� extract_dirr�r�r�rL�target�data�fr r r!�_unpack_zipfilems*       r�)rdcCs\ddl}y|j|�}Wn"|jk r8td|��YnXz|j||d�Wd|j�XdS)zAUnpack tar/tar.gz/tar.bz2/tar.xz `filename` to `extract_dir` rNz/%s is not a compressed or uncompressed tar file)rd)r�r>ZTarErrorr#Z extractallr�)r}r�rdr�Ztarobjr r r!�_unpack_tarfile�sr�z.tarz.zip)r�r�z.tar.gzz.tgzz.tar.bz2z.tbz2z.tar.xzz.txzcCs:x4tj�D](\}}x|dD]}|j|�r|SqWq WdS)Nr)r�r�r�)r}rLr�r�r r r!�_find_unpack_format�s   r�c Cs�|dkrtj�}|dkri}nd|i}|dk r�y t|}Wn"tk r\tdj|���YnX|d}|||ft|d�|��nRt|�}|dkr�tdj|���t|d}tt|d�}|j |�|||f|�dS)a]Unpack an archive. `filename` is the name of the archive. `extract_dir` is the name of the target directory, where the archive is unpacked. If not provided, the current working directory is used. `format` is the archive format: one of "zip", "tar", "gztar", "bztar", or "xztar". Or any other registered format. If not provided, unpack_archive will use the filename extension and see if an unpacker was registered for that extension. In case none is found, a ValueError is raised. If `filter` is given, it is passed to the underlying extraction function. NrdzUnknown unpack format '{0}'r�r�zUnknown archive format '{0}') r,r�r�r�r�r7�dictr�r#�update)r}r�r7rdZ filter_kwargsr�r�rPr r r!r�s&   �statvfs� disk_usageZusageztotal used freezTotal space in byteszUsed space in byteszFree space in bytescCs@tj|�}|j|j}|j|j}|j|j|j}t|||�S)z�Return disk usage statistics about the given path. Returned value is a named tuple with attributes 'total', 'used' and 'free', which are the amount of total, used and free space, in bytes. )r,r��f_bavail�f_frsize�f_blocks�f_bfree�_ntuple_diskusage)r-r@�free�total�usedr r r!r��s    �ntcCs"tj|�\}}||}t|||�S)z�Return disk usage statistics about the given path. Returned values is a named tuple with attributes 'total', 'used' and 'free', which are the amount of total, used and free space, in bytes. )r�Z _getdiskusager�)r-r�r�r�r r r!r��scCs�|dkr|dkrtd��|}|}|dkr.d}n(t|t�rVt|�}|dkrVtdj|���|dkrdd}n(t|t�s�t|�}|dkr�tdj|���tj |||�dS)z�Change owner user and group of the given path. user and group can be the uid/gid or the user/group names, and in that case, they are converted to their respective uid/gid. Nzuser and/or group must be setr�zno such user: {!r}zno such group: {!r}���r�) r�r�rnr�� LookupErrorr7�intr�r,r)r-�userr�Z_userZ_groupr r r!r s"  �P�cCs�yttjd�}Wnttfk r.d}YnXyttjd�}Wnttfk r^d}YnX|dksp|dkr�ytjtjj��}Wn$t tt fk r�tj |�}YnX|dkr�|j }|dkr�|j }tj ||f�S)aGet the size of the terminal window. For each of the two dimensions, the environment variable, COLUMNS and LINES respectively, is checked. If the variable is defined and the value is a positive integer, it is used. When COLUMNS or LINES is not defined, which is the common case, the terminal connected to sys.__stdout__ is queried by invoking os.get_terminal_size. If the terminal size cannot be successfully queried, either because the system doesn't support querying, or because we are not connected to a terminal, the value given in fallback parameter is used. Fallback defaults to (80, 24) which is the default size used by many terminal emulators. The value returned is a named tuple of type os.terminal_size. ZCOLUMNSrZLINES)r�r,�environr�r�rrt� __stdout__�fileno�AttributeErrorr.� terminal_size�columns�lines)Zfallbackrr�sizer r r!r(s$  c s"dd�}tjj��r&|�|�r"�SdS|dkr>tjjdtj�}|sFdS|jtj�}tj dkr�tj |krt|j dtj �tjjdd�jtj�}t �fd d �|D��r��g}q‡fd d �|D�}n�g}t �}xT|D]L}tjj|�}||kr�|j|�x(|D] } tjj|| �} || |�r�| Sq�Wq�WdS) a3Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result of os.environ.get("PATH"), or can be overridden with a custom search path. cSs&tjj|�o$tj||�o$tjj|� S)N)r,r-rl�accessr_)r?r\r r r!� _access_checkbszwhich.<locals>._access_checkN�PATHZwin32rZPATHEXTr�c3s |]}�j�j|j��VqdS)N)�lowerr�)r�r�)�cmdr r!� <genexpr>szwhich.<locals>.<genexpr>csg|] }�|�qSr r )r�r�)r r r!r��szwhich.<locals>.<listcomp>)r,r-r�r��get�defpathr��pathseprt�platformr��insert�anyrer/r�r`) r r\r-rZpathext�files�seen�dirZnormdirZthefilerLr )r r!rUs8            �@)r)FN)r�rrNNN)rrN)r�N)r�r�)r�r�)r�r�)Nr�)NNrrNNN)Nr�)NN)NN�r�r�)r)Vr"r,rtr8rc� collectionsrF�zlibr�� ImportErrorr�r�Zlzmar��pwdrZgrpr�__all__r.r rrrr#r�r$rr3rrr+rNrrr rr rwr�r>rxry�supports_dir_fdrj� supports_fdrUr�r Zavoids_symlink_attacksr�r r�r�r�r�r�r�rrrrrr�rrr�r�r�r�r�rrm� namedtupler�r�r�r�r�rLr�rr�F_OK�X_OKrr r r r!�<module>s�          :  Y!,   5 8    @ -     6  "       /        -