[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@52.14.158.115: ~ $
U

��,a�n�@sjdZdZdZdZddlmZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZzddlZWnek
r�dZYnXzddlZWnek
r�dZYnXeefZzeef7ZWnek
r�YnXddd	d
ddd
ddddddddgZdZdZedZdZdZdZdZdZ dZ!dZ"dZ#dZ$d Z%d!Z&d"Z'd#Z(d$Z)d%Z*d&Z+d'Z,d(Z-d)Z.d*Z/dZ0d+Z1d,Z2e2Z3e!e"e#e$e'e(e)e%e&e*e+e,fZ4e!e"e)e,fZ5e*e+e,fZ6d-Z7d.d/d0d1hZ8e9e9e9e:e:e:d2�Z;ej<d3k�r�d4Z=ne�>�Z=d5d6�Z?d7d8�Z@d9d:�ZAd;e3fd<d=�ZBd>d?�ZCdedfd@dA�ZDdBdC�ZEGdDd
�d
eF�ZGGdEd�deG�ZHGdFd�deG�ZIGdGd�deG�ZJGdHd
�d
eG�ZKGdId�deG�ZLGdJdK�dKeL�ZMGdLdM�dMeL�ZNGdNdO�dOeL�ZOGdPdQ�dQeL�ZPGdRdS�dSeL�ZQGdTdU�dU�ZRGdVdW�dW�ZSGdXdY�dYeT�ZUGdZd[�d[eT�ZVGd\d]�d]e	jW�ZXGd^d�deT�ZYGd_d�deT�ZZd`d	�Z[eZjZdadb�Z\e]dck�rfe\�dS)dz,Read from and write to tar format archives.
z0.9.0u"Lars Gustäbel (lars@gustaebel.de)u4Gustavo Niemeyer, Niels Gustäbel, Richard Townsend.�)�openN�TarFile�TarInfo�
is_tarfile�TarError�	ReadError�CompressionError�StreamError�ExtractError�HeaderError�ENCODING�USTAR_FORMAT�
GNU_FORMAT�
PAX_FORMAT�DEFAULT_FORMATr�i�sustar  sustar00�d��0�1�2�3�4�5�6�7�L�K�S�x�g�X��)�path�linkpath�size�mtime�uid�gid�uname�gnamer%r&r+r,)Zatime�ctimer(r)r*r'�nt�utf-8cCs(|�||�}|d|�|t|�tS)z8Convert a string to a null-terminated bytes object.
    N)�encode�len�NUL)�s�length�encoding�errors�r7�,/opt/alt/python38/lib64/python3.8/tarfile.py�stn�sr9cCs*|�d�}|dkr|d|�}|�||�S)z8Convert a null-terminated bytes object to a string.
    r���N)�find�decode)r3r5r6�pr7r7r8�nts�s
r>cCs�|ddkrbd}tt|�d�D]}|dK}|||d7}q |ddkr�dt|�d|}n@z"t|dd�}t|��p|d	d�}Wntk
r�td
��YnX|S)z/Convert a number field to a python number.
    r)��r#�r@��ascii�strict�0�invalid header)�ranger1r>�int�strip�
ValueError�InvalidHeaderError)r3�n�ir7r7r8�nti�srNrAcCs�t|�}d|kr$d|dkrDnntd|d|fd�t}n�|tkr�d|d|krrd|dkr�nnV|dkr�tdg�}ntdg�}d||}t|d�D]}|�d|d@�|dL}q�ntd	��|S)
z/Convert a python number to a number field.
    rrAr#z%0*orCrBr?r@zoverflow in number field)rH�bytesr2r�	bytearrayrG�insertrJ)rL�digits�formatr3rMr7r7r8�itn�s 2
rTcCs0dtt�d|��}dtt�d|��}||fS)a�Calculate the checksum for a member's header by summing up all
       characters except for the chksum field which is treated as if
       it was filled with spaces. According to the GNU tar sources,
       some tars (Sun and NeXT) calculate chksum with signed char,
       which will be different if there are chars in the buffer with
       the high bit set. So we calculate two checksums, unsigned and
       signed.
    rBZ
148B8x356BZ
148b8x356b)�sum�structZunpack_from)�bufZunsigned_chksumZ
signed_chksumr7r7r8�calc_chksums�s	rXc	Cs�|pd}|dkrdS|dkr.t�|||�dSt||�\}}t|�D],}|�|�}t|�|krf|d��|�|�qD|dkr�|�|�}t|�|kr�|d��|�|�dS)zjCopy length bytes from fileobj src to fileobj dst.
       If length is None, copy the entire content.
    i@rN�unexpected end of data)�shutil�copyfileobj�divmodrG�readr1�write)	�srcZdstr4�	exception�bufsize�blocks�	remainder�brWr7r7r8r[�s$


r[cCs8ttjdd�}|dk	r(|�|d��|�}t|dd�dS)Nr5�backslashreplace� )�end)�getattr�sys�stdoutr0r<�print)r3r5r7r7r8�_safe_printsrlc@seZdZdZdS)rzBase exception.N��__name__�
__module__�__qualname__�__doc__r7r7r7r8r
sc@seZdZdZdS)r
z%General exception for extract errors.Nrmr7r7r7r8r

sc@seZdZdZdS)rz&Exception for unreadable tar archives.Nrmr7r7r7r8rsc@seZdZdZdS)rz.Exception for unavailable compression methods.Nrmr7r7r7r8rsc@seZdZdZdS)r	z=Exception for unsupported operations on stream-like TarFiles.Nrmr7r7r7r8r	sc@seZdZdZdS)rz!Base exception for header errors.Nrmr7r7r7r8rsc@seZdZdZdS)�EmptyHeaderErrorzException for empty headers.Nrmr7r7r7r8rrsrrc@seZdZdZdS)�TruncatedHeaderErrorz Exception for truncated headers.Nrmr7r7r7r8rssrsc@seZdZdZdS)�EOFHeaderErrorz"Exception for end of file headers.Nrmr7r7r7r8rt"srtc@seZdZdZdS)rKzException for invalid headers.Nrmr7r7r7r8rK%srKc@seZdZdZdS)�SubsequentHeaderErrorz3Exception for missing and invalid extended headers.Nrmr7r7r7r8ru(sruc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�
_LowLevelFilez�Low-level file object. Supports reading and writing.
       It is used instead of a regular file object for streaming
       access.
    cCsFtjtjtjBtjBd�|}ttd�r2|tjO}t�||d�|_dS)N��r�w�O_BINARYi�)	�os�O_RDONLY�O_WRONLY�O_CREAT�O_TRUNC�hasattrrzr�fd)�self�name�moder7r7r8�__init__5s��

z_LowLevelFile.__init__cCst�|j�dS�N)r{�closer��r�r7r7r8r�>sz_LowLevelFile.closecCst�|j|�Sr�)r{r]r��r�r'r7r7r8r]Asz_LowLevelFile.readcCst�|j|�dSr�)r{r^r��r�r3r7r7r8r^Dsz_LowLevelFile.writeN)rnrorprqr�r�r]r^r7r7r7r8rv/s
	rvc@sreZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zddd�Zdd�Z
dd�Zdd�ZdS)�_Streama�Class that serves as an adapter between TarFile and
       a stream-like object.  The stream-like object only
       needs to have a read() or write() method and is accessed
       blockwise.  Use of gzip or bzip2 compression is possible.
       A stream-like object could be for example: sys.stdin,
       sys.stdout, a socket, a tape device etc.

       _Stream is intended to be used only internally.
    c	Cs�d|_|dkrt||�}d|_|dkr6t|�}|��}|p<d|_||_||_||_||_d|_	d|_
d|_�zL|dkr�zddl}Wnt
k
r�td	��YnX||_|�d�|_|d
kr�|��|j|_n|��n�|dk�r:zddl}Wnt
k
�r
td��YnX|d
k�r.d|_|��|_t|_n
|��|_n||d
k�r�zddl}Wnt
k
�rntd��YnX|d
k�r�d|_|��|_|j|_n
|��|_n|dk�r�td|��Wn&|j�s�|j��d|_�YnXdS)z$Construct a _Stream object.
        TNF�*��r�gzzzlib module is not availablerx�bz2�bz2 module is not available�xz�lzma module is not available�tar�unknown compression type %r) �_extfileobjrv�_StreamProxy�getcomptyper�r��comptype�fileobjrarW�pos�closed�zlib�ImportErrorr�crc32�crc�
_init_read_gz�errorr`�_init_write_gzr��dbufZBZ2Decompressor�cmp�OSErrorZ
BZ2Compressor�lzmaZLZMADecompressor�	LZMAErrorZLZMACompressorr�)	r�r�r�r�r�rar�r�r�r7r7r8r�Rsl












z_Stream.__init__cCst|d�r|js|��dS)Nr�)r�r�r�r�r7r7r8�__del__�sz_Stream.__del__cCs�|j�d|jj|jj|jjd�|_t�dtt	�	���}|�
d|d�|j�d�rf|jdd�|_t
j�|j�|_|�
|j�d	d
�t�dS)z6Initialize for writing with gzip compression.
        �	r�<Ls�s��.gzN���z
iso-8859-1�replace)r�ZcompressobjZDEFLATED�	MAX_WBITSZ
DEF_MEM_LEVELr�rV�packrH�time�_Stream__writer��endswithr{r%�basenamer0r2)r�Z	timestampr7r7r8r��s�z_Stream._init_write_gzcCsR|jdkr|j�||j�|_|jt|�7_|jdkrD|j�|�}|�|�dS)z&Write string s to the stream.
        r�r�N)	r�r�r�r�r�r1r��compressr�r�r7r7r8r^�s

z
_Stream.writecCsN|j|7_t|j�|jkrJ|j�|jd|j��|j|jd�|_qdS)z]Write string s to the stream if a whole new block
           is ready to be written.
        N)rWr1rar�r^r�r7r7r8Z__write�sz_Stream.__writecCs�|jr
dSd|_z�|jdkr:|jdkr:|j|j��7_|jdkr�|jr�|j�	|j�d|_|jdkr�|j�	t
�d|j��|j�	t
�d|j
d@��W5|js�|j��XdS)	z[Close the _Stream object. No operation should be
           done on it afterwards.
        NTryr�r�r�r�l��)r�r�r�r�r�r�rWr��flushr^rVr�r�r�r�r7r7r8r��s
z
_Stream.closecCs�|j�|jj�|_d|_|�d�dkr0td��|�d�dkrFtd��t|�d��}|�d�|d	@r�t|�d��d
t|�d��}|�	|�|d@r�|�d�}|r�|t
kr�q�q�|d@r�|�d�}|r�|t
kr�q�q�|d@r�|�d�d
S)z:Initialize for reading a gzip compressed fileobj.
        r�r$s��not a gzip filer#�zunsupported compression method��rBrA�N)r�Z
decompressobjr�r�r��
_Stream__readrr�ordr]r2)r��flagZxlenr3r7r7r8r��s*
 


z_Stream._init_read_gzcCs|jS)z3Return the stream's file pointer position.
        )r�r�r7r7r8�tell�sz_Stream.tellrcCsX||jdkrJt||j|j�\}}t|�D]}|�|j�q,|�|�ntd��|jS)zXSet the stream's file pointer to pos. Negative seeking
           is forbidden.
        rz seeking backwards is not allowed)r�r\rarGr]r	)r�r�rbrcrMr7r7r8�seek�sz_Stream.seekcCs |�|�}|jt|�7_|S)z5Return the next size number of bytes from the stream.)�_readr�r1)r�r'rWr7r7r8r]s
z_Stream.readcCs�|jdkr|�|�St|j�}|jg}||kr�|jrB|j}d|_n|j�|j�}|sVq�z|j�	|�}Wn|j
k
r�td��YnX|�|�|t|�7}q&d�
|�}||d�|_|d|�S)z+Return size bytes from the stream.
        r�r�zinvalid compressed dataN)r�r�r1r�rWr�r]rar��
decompressr`r�append�join�r�r'�c�trWr7r7r8r�
s(




z
_Stream._readcCsjt|j�}|jg}||krF|j�|j�}|s.qF|�|�|t|�7}qd�|�}||d�|_|d|�S)zsReturn size bytes from stream. If internal buffer is empty,
           read another block from the stream.
        r�N)r1rWr�r]rar�r�r�r7r7r8Z__read(s


z_Stream.__readN)r)rnrorprqr�r�r�r^r�r�r�r�r�r]r�r�r7r7r7r8r�Gs
F
	

r�c@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)r�zsSmall proxy class that enables transparent compression
       detection for the Stream interface (mode 'r|*').
    cCs||_|j�t�|_dSr�)r�r]�	BLOCKSIZErW)r�r�r7r7r8r�>sz_StreamProxy.__init__cCs|jj|_|jSr�)r�r]rWr�r7r7r8r]Bs
z_StreamProxy.readcCsP|j�d�rdS|jdd�dkr8|jdd�dkr8d	S|j�d
�rHdSdSdS)
Ns�r�r�sBZhr��
s1AY&SYr�)s]�s�7zXZr�r�)rW�
startswithr�r7r7r8r�Fs$z_StreamProxy.getcomptypecCs|j��dSr�)r�r�r�r7r7r8r�Psz_StreamProxy.closeN)rnrorprqr�r]r�r�r7r7r7r8r�9s

r�c@sjeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	e
jfdd�Zddd�Z
dd�Zdd�ZdS)�_FileInFilezA thin wrapper around an existing file object that
       provides a part of its data as an individual file
       object.
    NcCs�||_||_||_d|_t|dd�|_d|_|dkr>d|fg}d|_g|_d}|j}|D]L\}}||kr||j�	d||df�|j�	d||||f�||7}||}qX||jkr�|j�	d||jdf�dS)Nrr�FT)
r��offsetr'�positionrhr�r��	map_index�mapr�)r�r�r�r'Z	blockinfoZlastposZrealposr7r7r8r�]s(


z_FileInFile.__init__cCsdSr�r7r�r7r7r8r�vsz_FileInFile.flushcCsdS�NTr7r�r7r7r8�readableysz_FileInFile.readablecCsdS)NFr7r�r7r7r8�writable|sz_FileInFile.writablecCs
|j��Sr�)r��seekabler�r7r7r8r�sz_FileInFile.seekablecCs|jS)z*Return the current file position.
        )r�r�r7r7r8r��sz_FileInFile.tellcCs�|tjkr tt|d�|j�|_nj|tjkr\|dkrFt|j|d�|_q�t|j||j�|_n.|tjkr�tt|j||j�d�|_ntd��|jS)z(Seek to a position in the file.
        rzInvalid argument)	�io�SEEK_SET�min�maxr'r��SEEK_CUR�SEEK_ENDrJ)r�r��whencer7r7r8r��s


z_FileInFile.seekc	Cs
|dkr|j|j}nt||j|j�}d}|dk�r|j|j\}}}}||jkr`|krhq�nq�q6|jd7_|jt|j�kr6d|_q6t|||j�}|r�|j�||j|�|j�|�}t|�|kr�t	d��||7}n|t
|7}||8}|j|7_q,|S)z!Read data from the file.
        Nr�rr#rY)r'r�r�r�r�r1r�r�r]rr2)	r�r'rW�data�start�stopr�r4rdr7r7r8r]�s,

z_FileInFile.readcCs&|�t|��}||dt|��<t|�Sr�)r]r1)r�rdrWr7r7r8�readinto�sz_FileInFile.readintocCs
d|_dSr�)r�r�r7r7r8r��sz_FileInFile.close)N)N)rnrorprqr�r�r�r�r�r�r�r�r�r]r�r�r7r7r7r8r�Ws

r�cseZdZ�fdd�Z�ZS)�ExFileObjectcs&t|j|j|j|j�}t��|�dSr�)r�r��offset_datar'�sparse�superr�)r��tarfile�tarinfor���	__class__r7r8r��s

�zExFileObject.__init__)rnrorpr��
__classcell__r7r7r�r8r��sr�c@s�eZdZdZedddddddd	d
ddd
ddddddddd�Zdedd�Zedd��Zej	dd��Zedd��Z
e
j	dd��Z
dd�Zd d!�Ze
ed"fd#d$�Zd%d&�Zd'd(�Zd)d*�Zed+d,��Zd-d.�Zed/d0��Zed1d2��Zed3d4��Zed5d6��Zed7d8��Zed9d:��Zd;d<�Zd=d>�Zd?d@�ZdAdB�Z dCdD�Z!dEdF�Z"dGdH�Z#dIdJ�Z$dKdL�Z%dMdN�Z&dOdP�Z'dQdR�Z(dSdT�Z)dUdV�Z*dWdX�Z+dYdZ�Z,d[d\�Z-d]d^�Z.d_d`�Z/dadb�Z0dcdd�Z1dS)fraInformational class which holds the details about an
       archive member given by a tar header block.
       TarInfo objects are returned by TarFile.getmember(),
       TarFile.getmembers() and TarFile.gettarinfo() and are
       usually created internally.
    zName of the archive member.zPermission bits.z6User ID of the user who originally stored this member.z7Group ID of the user who originally stored this member.zSize in bytes.zTime of last modification.zHeader checksum.z�File type. type is usually one of these constants: REGTYPE, AREGTYPE, LNKTYPE, SYMTYPE, DIRTYPE, FIFOTYPE, CONTTYPE, CHRTYPE, BLKTYPE, GNUTYPE_SPARSE.zcName of the target file name, which is only present in TarInfo objects of type LNKTYPE and SYMTYPE.z
User name.zGroup name.zDevice major number.zDevice minor number.zThe tar header starts here.zThe file's data starts here.zMA dictionary containing key-value pairs of an associated pax extended header.zSparse member information.N)r�r�r)r*r'r(�chksum�type�linknamer+r,�devmajor�devminorr�r��pax_headersr�r��_sparse_structs�_link_targetr�cCsj||_d|_d|_d|_d|_d|_d|_t|_d|_	d|_
d|_d|_d|_
d|_d|_d|_i|_dS)zXConstruct a TarInfo object. name is the optional name
           of the member.
        i�rr�N)r�r�r)r*r'r(r��REGTYPEr�r�r+r,r�r�r�r�r�r��r�r�r7r7r8r��s"zTarInfo.__init__cCs|jS)z(In pax headers, "name" is called "path".�r�r�r7r7r8r%szTarInfo.pathcCs
||_dSr�r�r�r7r7r8r%
scCs|jS)z0In pax headers, "linkname" is called "linkpath".�r�r�r7r7r8r&szTarInfo.linkpathcCs
||_dSr�r�)r�r�r7r7r8r&scCsd|jj|jt|�fS)Nz<%s %r at %#x>)r�rnr��idr�r7r7r8�__repr__szTarInfo.__repr__cCsl|j|jd@|j|j|j|j|j|j|j|j	|j
|j|jd�
}|dt
krh|d�d�sh|dd7<|S)z9Return the TarInfo's attributes as a dictionary.
        �)
r�r�r)r*r'r(r�r�r�r+r,r�r�r�r��/)r�r�r)r*r'r(r�r�r�r+r,r�r��DIRTYPEr�)r��infor7r7r8�get_infos"�zTarInfo.get_info�surrogateescapecCsT|��}|tkr|�|||�S|tkr4|�|||�S|tkrH|�||�Std��dS)z<Return a tar header as a string of 512 byte blocks.
        zinvalid formatN)r�r
�create_ustar_headerr�create_gnu_headerr�create_pax_headerrJ)r�rSr5r6r�r7r7r8�tobuf2sz
TarInfo.tobufcCsnt|d<t|d�||��tkr(td��t|d�||��tkr^|�|d||�\|d<|d<|�|t||�S)z3Return the object as a ustar header block.
        �magicr�zlinkname is too longr��prefix)	�POSIX_MAGICr1r0�LENGTH_LINKrJ�LENGTH_NAME�_posix_split_name�_create_headerr
)r�r�r5r6r7r7r8r�@szTarInfo.create_ustar_headercCs�t|d<d}t|d�||��tkr<||�|dt||�7}t|d�||��tkrl||�|dt||�7}||�|t	||�S)z:Return the object as a GNU header block sequence.
        rr�r�r�)
�	GNU_MAGICr1r0r�_create_gnu_long_header�GNUTYPE_LONGLINKr�GNUTYPE_LONGNAMErr)r�r�r5r6rWr7r7r8r�MszTarInfo.create_gnu_headerc
	Cs*t|d<|j��}ddtfddtfddfD]j\}}}||kr>q*z||�dd	�Wn$tk
rv||||<Yq*YnXt||�|kr*||||<q*d
D]`\}}||kr�d||<q�||}d|kr�d|d
kr�nn
t|t	�r�t
|�||<d||<q�|�r|�|t|�}	nd}	|	|�
|tdd�S)z�Return the object as a ustar header block. If it cannot be
           represented this way, prepend a pax extended header sequence
           with supplement information.
        rr�r%r�r&)r+r+� )r,r,rrCrD))r)rA)r*rA)r'�)r(r
rrAr#r�r�)rr��copyrrr0�UnicodeEncodeErrorr1�
isinstance�float�str�_create_pax_generic_header�XHDTYPErr
)
r�r�r5r�r�Zhnamer4rR�valrWr7r7r8r�[s8
�
*
zTarInfo.create_pax_headercCs|�|td�S)zAReturn the object as a pax global header block sequence.
        r/)r�XGLTYPE)�clsr�r7r7r8�create_pax_global_header�sz TarInfo.create_pax_global_headercCs~|�d�}tdt|��D]T}d�|d|��}d�||d��}t|�||��tkrt|�||��tkrqvqtd��||fS)zUSplit a name longer than 100 chars into a prefix
           and a name part.
        r�r#Nzname is too long)�splitrGr1r�r0�
LENGTH_PREFIXrrJ)r�r�r5r6Z
componentsrMrr7r7r8r�s
�zTarInfo._posix_split_namecCsVt|�dd�d||�t|�dd�d@d|�t|�dd�d|�t|�d	d�d|�t|�d
d�d|�t|�dd�d|�d
|�dt�t|�dd�d||�|�dt�t|�dd�d||�t|�dd�d||�t|�dd�d|�t|�dd�d|�t|�dd�d||�g}t�dtd�|��}t	|td��d}|dd�t
d|d�|dd�}|S)z�Return a header block. info is a dictionary with file
           information, format must be one of the *_FORMAT constants.
        r�r�rr�rr�rAr)r*r'r
r(s        r�r�rr+rr,r�r�rrz%dsr�Ni����z%06orCi����)r9�getrTr�rrVr�r�r�rXrO)r�rSr5r6�partsrWr�r7r7r8r�s(

�&zTarInfo._create_headercCs.tt|�t�\}}|dkr*|t|t7}|S)zdReturn the string payload filled with zero bytes
           up to the next 512 byte border.
        r)r\r1r�r2)Zpayloadrbrcr7r7r8�_create_payload�szTarInfo._create_payloadcCsR|�||�t}i}d|d<||d<t|�|d<t|d<|�|t||�|�|�S)zTReturn a GNUTYPE_LONGNAME or GNUTYPE_LONGLINK sequence
           for name.
        z
././@LongLinkr�r�r'r)r0r2r1rrr
r)rr�r�r5r6r�r7r7r8r	�s�zTarInfo._create_gnu_long_headerc	Cs2d}|��D]8\}}z|�dd�Wqtk
rBd}YqFYqXqd}|rV|d7}|��D]�\}}|�d�}|r�|�|d�}n
|�d�}t|�t|�d}d	}	}
|tt|
��}	|	|
kr�q�|	}
q�|tt|
�d
�d|d|d
7}q^i}d|d<||d<t|�|d<t|d<|�|td
d�|�	|�S)z�Return a POSIX.1-2008 extended or global header sequence
           that contains a list of keyword, value pairs. The values
           must be strings.
        Fr/rDTr�s21 hdrcharset=BINARY
r�r�rrC� �=�
z././@PaxHeaderr�r�r'rr�)
�itemsr0rr1rrOrrr
r)rr�r�r5Zbinary�keyword�valueZrecords�lrLr=r�r7r7r8r�s<

(�z"TarInfo._create_pax_generic_headerc	Csvt|�dkrtd��t|�tkr(td��|�t�tkr>td��t|dd��}|t|�krbt	d��|�}t
|dd�||�|_t|dd	��|_t|d	d
��|_
t|d
d��|_t|dd��|_t|dd��|_||_|dd
�|_t
|d
d�||�|_t
|dd�||�|_t
|dd�||�|_t|dd��|_t|dd��|_t
|dd�||�}|jtk�r�|j�d��r�t|_|jtk�r8d}g}td�D]l}	z0t|||d��}
t||d|d��}Wntk
�r�Y�qYnX|�|
|f�|d7}�q�t|d�}t|dd��}
|||
f|_ |�!��rP|j�"d�|_|�rr|jt#k�rr|d|j|_|S)zAConstruct a TarInfo object from a 512 byte bytes object.
        rzempty headerztruncated headerzend of file header��zbad checksumr�l�t�|��ii	i)iIiQiYi�r�i�r�r
�i�i�i�)$r1rrr�rs�countr2rtrNrXrKr>r�r�r)r*r'r(r�r�r�r+r,r�r��AREGTYPEr�r��GNUTYPE_SPARSErGrJr��boolr��isdir�rstrip�	GNU_TYPES)rrWr5r6r��objrr��structsrMr��numbytes�
isextended�origsizer7r7r8�frombufsZ
zTarInfo.frombufcCs8|j�t�}|�||j|j�}|j��t|_|�|�S)zOReturn the next TarInfo object from TarFile object
           tarfile.
        )	r�r]r�r9r5r6r�r��_proc_member)rr�rWr4r7r7r8�fromtarfileKszTarInfo.fromtarfilecCsT|jttfkr|�|�S|jtkr,|�|�S|jtttfkrF|�	|�S|�
|�SdS)zYChoose the right processing method depending on
           the type and call it.
        N)r�rr
�
_proc_gnulongr/�_proc_sparserr�SOLARIS_XHDTYPE�	_proc_pax�
_proc_builtin)r�r�r7r7r8r:`s



zTarInfo._proc_membercCsR|j��|_|j}|��s$|jtkr4||�|j�7}||_|�	|j
|j|j�|S)zfProcess a builtin type or an unknown type which
           will be treated as a regular file.
        )
r�r�r��isregr��SUPPORTED_TYPES�_blockr'r��_apply_pax_infor�r5r6)r�r�r�r7r7r8r@mszTarInfo._proc_builtincCs�|j�|�|j��}z|�|�}Wntk
r>td��YnX|j|_|jt	krft
||j|j�|_
n|jtkr�t
||j|j�|_|S)zSProcess the blocks that hold a GNU longname
           or longlink member.
        � missing or bad subsequent header)r�r]rCr'r;rrur�r�rr>r5r6r�r
r�)r�r�rW�nextr7r7r8r<~s

zTarInfo._proc_gnulongc
	Cs�|j\}}}|`|r�|j�t�}d}td�D]n}z0t|||d��}t||d|d��}	Wntk
rzYq�YnX|r�|	r�|�||	f�|d7}q,t|d�}q||_	|j�
�|_|j|�|j
�|_||_
|S)z8Process a GNU sparse header plus extra headers.
        r�r
r,i�)r�r�r]r�rGrNrJr�r0r�r�r�rCr'r�)
r�r�r5r7r8rWr�rMr�r6r7r7r8r=�s(
zTarInfo._proc_sparsecCs.|j�|�|j��}|jtkr&|j}n
|j��}t�	d|�}|dk	rX|�
d��d�|d<|�d�}|dkrr|j
}nd}t�d�}d}|�||�}|s��q6|��\}	}
t|	�}	|	dkr�td	��||�d
�d|�d�|	d�}|�|
dd|j�}
|
tk�r|�|||j
|j�}n|�|dd|j�}|||
<||	7}q�z|�|�}Wntk
�rbtd��YnXd|k�r||�||�nHd
|k�r�|�|||�n.|�d�dk�r�|�d�dk�r�|�|||�|jttfk�r*|� ||j
|j�|j!|_!d|k�r*|j"}
|�#��s|jt$k�r$|
|�|j�7}
|
|_!|S)zVProcess an extended or global header as described in
           POSIX.1-2008.
        s\d+ hdrcharset=([^\n]+)\nNr#r/�
hdrcharsetZBINARYs(\d+) ([^=]+)=rrFr$rE�GNU.sparse.map�GNU.sparse.sizezGNU.sparse.major�1zGNU.sparse.minorrEr')%r�r]rCr'r�rr�r�re�search�groupr<rr5�compile�match�groupsrHrKrgr��_decode_pax_fieldr6�PAX_NAME_FIELDSr;rru�_proc_gnusparse_01�_proc_gnusparse_00�_proc_gnusparse_10rr>rDr�r�rArB)r�r�rWr�rPrHr5Zregexr�r4r"r#rFr�r7r7r8r?�sh



$	
�
�
�


 
zTarInfo._proc_paxcCshg}t�d|�D]}|�t|�d���qg}t�d|�D]}|�t|�d���q:tt||��|_dS)z?Process a GNU tar extended sparse header, version 0.0.
        s\d+ GNU.sparse.offset=(\d+)\nr#s\d+ GNU.sparse.numbytes=(\d+)\nN)rL�finditerr�rHrN�list�zipr�)r�rFr�rWZoffsetsrPr6r7r7r8rUszTarInfo._proc_gnusparse_00cCs@dd�|d�d�D�}tt|ddd�|ddd���|_dS)z?Process a GNU tar extended sparse header, version 0.1.
        cSsg|]}t|��qSr7)rH)�.0�xr7r7r8�
<listcomp>&sz.TarInfo._proc_gnusparse_01.<locals>.<listcomp>rI�,Nr$r#)rrXrYr�)r�rFr�r�r7r7r8rT#szTarInfo._proc_gnusparse_01cCs�d}g}|j�t�}|�dd�\}}t|�}t|�|dkrtd|krT||j�t�7}|�dd�\}}|�t|��q,|j��|_t	t
|ddd�|ddd���|_dS)z?Process a GNU tar extended sparse header, version 1.0.
        Nr r#r$)r�r]r�rrHr1r�r�r�rXrYr�)r�rFr�r�Zfieldsr�rWZnumberr7r7r8rV)szTarInfo._proc_gnusparse_10c	Cs�|��D]�\}}|dkr&t|d|�q|dkr@t|dt|��q|dkrZt|dt|��q|tkr|tkr�zt||�}Wntk
r�d}YnX|dkr�|�d�}t|||�q|��|_dS)	zoReplace fields with supplemental information from a previous
           pax extended or global header.
        zGNU.sparse.namer%rJr'zGNU.sparse.realsizerr�N)	r!�setattrrH�
PAX_FIELDS�PAX_NUMBER_FIELDSrJr2rr�)r�r�r5r6r"r#r7r7r8rD9s"

zTarInfo._apply_pax_infocCs4z|�|d�WStk
r.|�||�YSXdS)z1Decode a single field from a pax record.
        rDN)r<�UnicodeDecodeError)r�r#r5Zfallback_encodingZfallback_errorsr7r7r8rRPszTarInfo._decode_pax_fieldcCs"t|t�\}}|r|d7}|tS)z_Round up a byte count by BLOCKSIZE and return it,
           e.g. _block(834) => 1024.
        r#)r\r�)r�r-rbrcr7r7r8rCXszTarInfo._blockcCs
|jtkS�z4Return True if the Tarinfo object is a regular file.)r��
REGULAR_TYPESr�r7r7r8rAasz
TarInfo.isregcCs|��Srb)rAr�r7r7r8�isfileeszTarInfo.isfilecCs
|jtkS)z!Return True if it is a directory.)r�r�r�r7r7r8r1isz
TarInfo.isdircCs
|jtkS)z%Return True if it is a symbolic link.)r��SYMTYPEr�r7r7r8�issymmsz
TarInfo.issymcCs
|jtkS)z!Return True if it is a hard link.)r��LNKTYPEr�r7r7r8�islnkqsz
TarInfo.islnkcCs
|jtkS)z(Return True if it is a character device.)r��CHRTYPEr�r7r7r8�ischrusz
TarInfo.ischrcCs
|jtkS)z$Return True if it is a block device.)r��BLKTYPEr�r7r7r8�isblkysz
TarInfo.isblkcCs
|jtkS)zReturn True if it is a FIFO.)r��FIFOTYPEr�r7r7r8�isfifo}szTarInfo.isfifocCs
|jdk	Sr�)r�r�r7r7r8�issparse�szTarInfo.issparsecCs|jtttfkS)zCReturn True if it is one of character device, block device or FIFO.)r�rirkrmr�r7r7r8�isdev�sz
TarInfo.isdev)r�)2rnrorprq�dict�	__slots__r��propertyr%�setterr&r�r�rrrr�r�r��classmethodrr�staticmethodrrr	rr9r;r:r@r<r=r?rUrTrVrDrRrCrArdr1rfrhrjrlrnrorpr7r7r7r8r�s��





1


	

2
>

h	c
@s�eZdZdZdZdZdZdZeZ	e
ZdZe
ZeZd\dd	�Zedddefd
d��Zed]dd
��Zed^dd��Zed_dd��Zed`dd��Zddddd�Zdd�Zdd�Zdd�Zd d!�Zdad"d#�Zdbdd%�d&d'�Zdcdd(�d)d*�Z ddd+d,�Z!dedd.�d/d0�Z"dfdd.�d2d3�Z#d4d5�Z$dgd6d7�Z%d8d9�Z&d:d;�Z'd<d=�Z(d>d?�Z)d@dA�Z*dBdC�Z+dDdE�Z,dFdG�Z-dHdI�Z.dJdK�Z/dhdLdM�Z0dNdO�Z1didPdQ�Z2dRdS�Z3dTdU�Z4dVdW�Z5dXdY�Z6dZd[�Z7dS)jrz=The TarFile Class provides an interface to tar archives.
    rFr#Nrxr�c
Cs�ddddd�}||krtd��||_|||_|sh|jdkrTtj�|�sTd|_d|_t||j�}d	|_n@|d
kr�t|d�r�t	|j
ttf�r�|j
}t|d�r�|j|_d
|_|r�tj�
|�nd
|_
||_|d
k	r�||_|d
k	r�||_|d
k	r�||_|d
k	r�||_|d
k	�r||_|	|_|
d
k	�r0|jtk�r0|
|_ni|_|d
k	�rF||_|d
k	�rV||_|
|_d	|_g|_d	|_|j��|_i|_z�|jdk�r�d
|_ |�!�|_ |jdk�r2|j�"|j�z|j�#|�}|j�$|�WnXt%k
�r�|j�"|j�Y�q2Yn0t&k
�r,}zt't|���W5d
}~XYnX�q�|jdk�r|d
|_|j�r||j�(|j�)��}|j�*|�|jt+|�7_Wn&|j�s�|j�,�d
|_�YnXd
S)a�Open an (uncompressed) tar archive `name'. `mode' is either 'r' to
           read from an existing archive, 'a' to append data to an existing
           file or 'w' to create a new file overwriting an existing one. `mode'
           defaults to 'r'.
           If `fileobj' is given, it is used for reading or writing data. If it
           can be determined, `mode' is overridden by `fileobj's mode.
           `fileobj' is not closed, when TarFile is closed.
        �rbzr+b�wbZxb�rx�aryr[�!mode must be 'r', 'a', 'w' or 'x'rzryFNr�r�Trx�rzryr[)-rJr��_moder{r%�exists�	bltn_openr�r�rr�rrO�abspathr�rSr��dereference�ignore_zerosr5r6rr��debug�
errorlevel�copybufsizer��members�_loadedr�r��inodes�firstmemberrFr�r;r�rtrrrrr^r1r�)r�r�r�r�rSr�r�r�r5r6r�r�r�r�Zmodes�erWr7r7r8r��s�
�





"
zTarFile.__init__c

s�|s|std��|dkr��fdd�}t�j|d�D]j}t��j|�}|dk	rV|��}	z||d|f|�WSttfk
r�|dk	r�|�|	�Yq2Yq2Xq2td���nd	|k�r|�d	d
�\}
}|
p�d}
|p�d}|�jkr�t��j|�}ntd|��|||
|f|�Sd
|k�r�|�d
d
�\}
}|
�p.d}
|�p8d}|
dk�rLtd��t	||
|||�}z�||
|f|�}Wn|�
��YnXd|_|S|dk�r��j|||f|�Std��dS)a�Open a tar archive for reading, writing or appending. Return
           an appropriate TarFile class.

           mode:
           'r' or 'r:*' open for reading with transparent compression
           'r:'         open for reading exclusively uncompressed
           'r:gz'       open for reading with gzip compression
           'r:bz2'      open for reading with bzip2 compression
           'r:xz'       open for reading with lzma compression
           'a' or 'a:'  open for appending, creating the file if necessary
           'w' or 'w:'  open for writing without compression
           'w:gz'       open for writing with gzip compression
           'w:bz2'      open for writing with bzip2 compression
           'w:xz'       open for writing with lzma compression

           'x' or 'x:'  create a tarfile exclusively without compression, raise
                        an exception if the file is already created
           'x:gz'       create a gzip compressed tarfile, raise an exception
                        if the file is already created
           'x:bz2'      create a bzip2 compressed tarfile, raise an exception
                        if the file is already created
           'x:xz'       create an lzma compressed tarfile, raise an exception
                        if the file is already created

           'r|*'        open a stream of tar blocks with transparent compression
           'r|'         open an uncompressed stream of tar blocks for reading
           'r|gz'       open a gzip compressed stream of tar blocks
           'r|bz2'      open a bzip2 compressed stream of tar blocks
           'r|xz'       open an lzma compressed stream of tar blocks
           'w|'         open an uncompressed stream for writing
           'w|gz'       open a gzip compressed stream for writing
           'w|bz2'      open a bzip2 compressed stream for writing
           'w|xz'       open an lzma compressed stream for writing
        znothing to open)rx�r:*cs�j|dkS)N�taropen)�	OPEN_METH)r��rr7r8�not_compressed<sz$TarFile.open.<locals>.not_compressed��keyNrxz%file could not be opened successfully�:r#r�r��|rwzmode must be 'r' or 'w'Fr|zundiscernible mode)
rJ�sortedr�rhr�rrr�rr�r�r�r�)
rr�r�r�ra�kwargsr�r��funcZ	saved_pos�filemode�streamr�r7r�r8rsP%







zTarFile.opencKs |dkrtd��||||f|�S)zCOpen uncompressed tar archive name for reading or writing.
        ryr{)rJ)rr�r�r�r�r7r7r8r�mszTarFile.taropenr�cKs�|dkrtd��zddlm}Wntk
r<td��YnXz|||d||�}Wn.tk
r�|dk	r||dkr|td	���YnXz|j|||f|�}WnBtk
r�|��|dkr�td	���Yn|���YnXd
|_	|S)zkOpen gzip compressed tar archive name for reading or writing.
           Appending is not allowed.
        �rxryr[�mode must be 'r', 'w' or 'x'r)�GzipFilezgzip module is not availablerdNrxr�F)
rJZgzipr�r�rr�rr�r�r�)rr�r�r��
compresslevelr�r�r�r7r7r8�gzopenus0zTarFile.gzopenc	Ks�|dkrtd��zddlm}Wntk
r<td��YnX||pF|||d�}z|j|||f|�}WnFttfk
r�|��|dkr�t	d���Yn|���YnXd	|_
|S)
zlOpen bzip2 compressed tar archive name for reading or writing.
           Appending is not allowed.
        r�r�r)�BZ2Filer�)r�rxznot a bzip2 fileF)rJr�r�r�rr�r��EOFErrorr�rr�)rr�r�r�r�r�r�r�r7r7r8�bz2open�s&zTarFile.bz2openc		Ks�|dkrtd��zddlm}m}Wntk
r@td��YnX||pJ|||d�}z|j|||f|�}WnF|tfk
r�|��|dkr�t	d���Yn|���YnXd	|_
|S)
zkOpen lzma compressed tar archive name for reading or writing.
           Appending is not allowed.
        r�r�r)�LZMAFiler�r�)�presetrxznot an lzma fileF)rJr�r�r�r�rr�r�r�rr�)	rr�r�r�r�r�r�r�r�r7r7r8�xzopen�s&zTarFile.xzopenr�r�r�r�)r�r�r�r�cCs�|jr
dSd|_z`|jdkrn|j�ttd�|jtd7_t	|jt
�\}}|dkrn|j�tt
|�W5|js�|j��XdS)zlClose the TarFile. In write-mode, two finishing zero blocks are
           appended to the archive.
        NTr|r$r)r�r�r�r�r�r^r2r�r�r\�
RECORDSIZE)r�rbrcr7r7r8r��s
z
TarFile.closecCs"|�|�}|dkrtd|��|S)aReturn a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        Nzfilename %r not found)�
_getmember�KeyError)r�r�r�r7r7r8�	getmember�s
zTarFile.getmembercCs|��|js|��|jS)z�Return the members of the archive as a list of TarInfo objects. The
           list has the same order as the members in the archive.
        )�_checkr��_loadr�r�r7r7r8�
getmembers�szTarFile.getmemberscCsdd�|��D�S)z�Return the members of the archive as a list of their names. It has
           the same order as the list returned by getmembers().
        cSsg|]
}|j�qSr7r�)rZr�r7r7r8r\sz$TarFile.getnames.<locals>.<listcomp>)r�r�r7r7r8�getnamesszTarFile.getnamescCs^|�d�|dk	r|j}|dkr$|}tj�|�\}}|�tjd�}|�d�}|��}||_	|dkr�|j
stt�|�}q�t�|�}nt�
|���}d}|j}t�|�r�|j|jf}	|j
s�|jdkr�|	|jkr�||j|	kr�t}
|j|	}nt}
|	dr�||j|	<nht�|��rt}
nVt�|��r"t}
nDt�|��r>t}
t�|�}n(t�|��rPt}
nt� |��rbt!}
ndS||_||_"|j#|_$|j%|_&|
tk�r�|j'|_(nd|_(|j)|_*|
|_+||_,t-�r�zt-�.|j$�d|_/Wnt0k
�r�YnXt1�rzt1�2|j&�d|_3Wnt0k
�rYnX|
tt!fk�rZt4td��rZt4td��rZt�5|j6�|_7t�8|j6�|_9|S)	a�Create a TarInfo object from the result of os.stat or equivalent
           on an existing file. The file is either named by `name', or
           specified as a file object `fileobj' with a file descriptor. If
           given, `arcname' specifies an alternative name for the file in the
           archive, otherwise, the name is taken from the 'name' attribute of
           'fileobj', or the 'name' argument. The name should be a text
           string.
        �awxNr�r�r#r�major�minor):r�r�r{r%�
splitdriver��sep�lstripr�r�r��lstat�stat�fstat�fileno�st_mode�S_ISREG�st_ino�st_dev�st_nlinkr�rgr��S_ISDIRr��S_ISFIFOrm�S_ISLNKre�readlink�S_ISCHRri�S_ISBLKrkr��st_uidr)�st_gidr*�st_sizer'�st_mtimer(r�r��pwd�getpwuidr+r��grpZgetgrgidr,r�r��st_rdevr�r�r�)r�r��arcnamer�Zdrvr�Zstatresr�Zstmd�inoder�r7r7r8�
gettarinfo	s�	


��

zTarFile.gettarinfoT)r�cCs�|��|dkr|}|D]�}|r�tt�|j��td|jp>|j|jpH|jf�|�	�s`|�
�rztdd|j|jf�ntd|j
�tdt�|j�dd��t|j|��r�dnd	�|r�|��r�td
|j�|��r�td|j�t�qdS)aPrint a table of contents to sys.stdout. If `verbose' is False, only
           the names of the members are printed. If it is True, an `ls -l'-like
           output is produced. `members' is optional and must be a subset of the
           list returned by getmembers().
        Nz%s/%sz%10sz%d,%dz%10dz%d-%02d-%02d %02d:%02d:%02dr�r�r�z-> zlink to )r�rlr�r�r�r+r)r,r*rjrlr�r�r'r��	localtimer(r�r1rfr�rhrk)r��verboser�r�r7r7r8rXls0
���zTarFile.list��filterc	Cs6|�d�|dkr|}|jdk	rFtj�|�|jkrF|�dd|�dS|�d|�|�||�}|dkrz|�dd|�dS|dk	r�||�}|dkr�|�dd|�dS|��r�t|d��}|�	||�W5QRXn`|�
��r(|�	|�|�r2tt�|��D]*}|j
tj�||�tj�||�||d	�q�n
|�	|�dS)
a!Add the file `name' to the archive. `name' may be any type of file
           (directory, fifo, symbolic link, etc.). If given, `arcname'
           specifies an alternative name for the file in the archive.
           Directories are added recursively by default. This can be avoided by
           setting `recursive' to False. `filter' is a function
           that expects a TarInfo object argument and returns the changed
           TarInfo object, if it returns None the TarInfo object will be
           excluded from the archive.
        r�Nr$ztarfile: Skipped %rr#ztarfile: Unsupported type %rztarfile: Excluded %rrwr�)r�r�r{r%r��_dbgr�rAr�addfiler1r��listdir�addr�)r�r�r��	recursiver�r��fr7r7r8r��s8



�
zTarFile.addcCs�|�d�t�|�}|�|j|j|j�}|j�|�|jt	|�7_|j
}|dk	r�t||j|j|d�t
|jt�\}}|dkr�|j�tt|�|d7}|j|t7_|j�|�dS)aAdd the TarInfo object `tarinfo' to the archive. If `fileobj' is
           given, it should be a binary file, and tarinfo.size bytes are read
           from it and added to the archive. You can create TarInfo objects
           directly, or by using gettarinfo().
        r�N)rarr#)r�rrrSr5r6r�r^r�r1r�r[r'r\r�r2r�r�)r�r�r�rWrarbrcr7r7r8r��s

zTarFile.addfile�.��
numeric_ownercCs�g}|dkr|}|D]>}|��r:|�|�t�|�}d|_|j|||��|d�q|jdd�d�|��|D]�}tj�	||j
�}z,|j|||d�|�||�|�
||�Wqptk
r�}z"|jdkrЂn|�dd	|�W5d}~XYqpXqpdS)
a�Extract all members from the archive to the current working
           directory and set owner, modification time and permissions on
           directories afterwards. `path' specifies a different directory
           to extract to. `members' is optional and must be a subset of the
           list returned by getmembers(). If `numeric_owner` is True, only
           the numbers for user/group names are used and not the names.
        N���	set_attrsr�cSs|jSr�r�)rzr7r7r8�<lambda>�r�z$TarFile.extractall.<locals>.<lambda>r�r�r#�tarfile: %s)r1r�rr��extract�sort�reverser{r%r�r��chown�utime�chmodr
r�r�)r�r%r�r�Zdirectoriesr��dirpathr�r7r7r8�
extractall�s.

�
zTarFile.extractallr�c
Cs|�d�t|t�r |�|�}n|}|��r>tj�||j�|_	z"|j
|tj�||j�||d�Wn�tk
r�}zH|j
dkr��n6|jdkr�|�dd|j�n|�dd|j|jf�W5d}~XYnBtk
�r}z"|j
dkr�n|�dd|�W5d}~XYnXdS)a�Extract a member from the archive to the current working directory,
           using its full name. Its file information is extracted as accurately
           as possible. `member' may be a filename or a TarInfo object. You can
           specify a different directory using `path'. File attributes (owner,
           mtime, mode) are set unless `set_attrs' is False. If `numeric_owner`
           is True, only the numbers for user/group names are used and not
           the names.
        rxr�rNr#r�ztarfile: %s %r)r�rrr�rhr{r%r�r�r��_extract_memberr�r�r��filenamer��strerrorr
)r��memberr%r�r�r�r�r7r7r8r�s*	

�


(
zTarFile.extractcCs�|�d�t|t�r |�|�}n|}|��s6|jtkrB|�||�S|��sR|�	�rzt|j
t�rhtd��q~|�
|�|��SndSdS)z�Extract a member from the archive as a file object. `member' may be
           a filename or a TarInfo object. If `member' is a regular file or a
           link, an io.BufferedReader object is returned. Otherwise, None is
           returned.
        rxz'cannot extract (sym)link as file objectN)r�rrr�rAr�rB�
fileobjectrhrfr�r�r	�extractfile�_find_link_target)r�r�r�r7r7r8r�&s


zTarFile.extractfilecCsT|�d�}|�dtj�}tj�|�}|r>tj�|�s>t�|�|��sN|�	�rh|�
dd|j|jf�n|�
d|j�|�
�r�|�||�n�|��r�|�||�nx|��r�|�||�nb|��s�|��r�|�||�nD|��s�|�	�r�|�||�n&|jtk�r|�||�n|�||�|�rP|�|||�|�	��sP|�||�|�||�dS)z\Extract the TarInfo object tarinfo to a physical
           file called targetpath.
        r�r#z%s -> %sN)r2r�r{r�r%�dirnamer~�makedirsrhrfr�r�r�rA�makefiler1�makedirrn�makefiforjrl�makedev�makelinkr�rB�makeunknownr�r�r�)r�r��
targetpathr�r�Z	upperdirsr7r7r8r�Es4


zTarFile._extract_membercCs*zt�|d�Wntk
r$YnXdS)z,Make a directory called targetpath.
        r�N)r{�mkdir�FileExistsError�r�r�r�r7r7r8r�vszTarFile.makedirc	Cs�|j}|�|j�|j}t|d��b}|jdk	rn|jD]"\}}|�|�t|||t|�q4|�|j�|�	�nt|||jt|�W5QRXdS)z'Make a file called targetpath.
        rxN)
r�r�r�r�rr�r[rr'�truncate)r�r�r��sourcera�targetr�r'r7r7r8r��s


zTarFile.makefilecCs"|�||�|�dd|j�dS)zYMake a file from a TarInfo object with an unknown type
           at targetpath.
        r#z9tarfile: Unknown file type %r, extracted as regular file.N)r�r�r�r�r7r7r8r��s�zTarFile.makeunknowncCs"ttd�rt�|�ntd��dS)z'Make a fifo called targetpath.
        �mkfifozfifo not supported by systemN)r�r{r�r
r�r7r7r8r��s
zTarFile.makefifocCs^ttd�rttd�std��|j}|��r6|tjO}n
|tjO}t�||t�	|j
|j��dS)z<Make a character or block device called targetpath.
        �mknodr�z'special devices not supported by systemN)r�r{r
r�rlr��S_IFBLK�S_IFCHRr�r�r�r�)r�r�r�r�r7r7r8r��s
�zTarFile.makedevcCs�zb|��r0tj�|�r t�|�t�|j|�n0tj�|j�rNt�	|j|�n|�
|�|�|�WnHtk
r�z|�
|�|�|�Wnt
k
r�td��YnXYnXdS)z�Make a (symbolic) link called targetpath. If it cannot be created
          (platform limitation), we try to make a copy of the referenced file
          instead of a link.
        z%unable to resolve link inside archiveN)rfr{r%�lexists�unlink�symlinkr�r~r��linkr�r��symlink_exceptionr�r
r�r7r7r8r��s"
��zTarFile.makelinkcCs�ttd�r�t��dkr�|j}|j}|s�ztr<t�|j�d}Wntk
rRYnXzt	rjt	�
|j�d}Wntk
r�YnXz4|��r�ttd�r�t�
|||�nt�|||�Wntk
r�td��YnXdS)z�Set owner of targetpath according to tarinfo. If numeric_owner
           is True, use .gid/.uid instead of .gname/.uname. If numeric_owner
           is False, fall back to .gid/.uid when the search based on name
           fails.
        �geteuidrr$�lchownzcould not change ownerN)r�r{rr*r)r�Zgetgrnamr,r�r��getpwnamr+rfrr�r�r
)r�r�r�r��g�ur7r7r8r��s(z
TarFile.chowncCs4zt�||j�Wntk
r.td��YnXdS)zASet file permissions of targetpath according to tarinfo.
        zcould not change modeN)r{r�r�r�r
r�r7r7r8r��sz
TarFile.chmodcCsHttd�sdSzt�||j|jf�Wntk
rBtd��YnXdS)zBSet modification time of targetpath according to tarinfo.
        r�Nz"could not change modification time)r�r{r�r(r�r
r�r7r7r8r��s
z
TarFile.utimec
Cs�|�d�|jdk	r$|j}d|_|S|j|j��krZ|j�|jd�|j�d�sZtd��d}z|j�	|�}W�q�t
k
r�}z6|jr�|�dd|j|f�|jt
7_WY�q^W5d}~XY�q�tk
�r6}zR|j�r|�dd|j|f�|jt
7_WY� q^n|jdk�r&tt|���W5d}~XYn�tk
�r^|jdk�rZtd��Ynjtk
�r�}z|jdk�r�tt|���W5d}~XYn0tk
�r�}ztt|���W5d}~XYnX�q�q^|dk	�r�|j�|�nd	|_|S)
z�Return the next member of the archive as a TarInfo object, when
           TarFile is opened for reading. Return None if there is no more
           available.
        ZraNr#rYr$z0x%X: %srz
empty fileT)r�r�r�r�r�r�r]rr�r;rtr�r�r�rKrrrrsrur�r�r�)r��mr�r�r7r7r8rF�sJ



zTarFile.nextcCsn|��}|dk	r"|d|�|��}|r2tj�|�}t|�D].}|rRtj�|j�}n|j}||kr:|Sq:dS)z}Find an archive member by name from bottom to top.
           If tarinfo is given, it is used as the starting point.
        N)r��indexr{r%�normpath�reversedr�)r�r�r��	normalizer�r��member_namer7r7r8r�/	szTarFile._getmembercCs|��}|dkrqqd|_dS)zWRead through the entire archive file and look for readable
           members.
        NT)rFr�)r�r�r7r7r8r�F	sz
TarFile._loadcCs:|jrtd|jj��|dk	r6|j|kr6td|j��dS)znCheck if TarFile is still open, and if the operation's mode
           corresponds to TarFile's mode.
        z%s is closedNzbad operation for mode %r)r�r�r�rnr�)r�r�r7r7r8r�P	szTarFile._checkcCs`|��r.d�tdtj�|j�|jf��}d}n
|j}|}|j||dd�}|dkr\t	d|��|S)zZFind the target member of a symlink or hardlink member in the
           archive.
        r�NT)r�rzlinkname %r not found)
rfr�r�r{r%r�r�r�r�r�)r�r�r��limitr�r7r7r8r�Y	s zTarFile._find_link_targetccs�|jr|jEdHdSd}|jdk	r:|��}|d7}|V|t|j�krT|j|}n"|jsr|��}|svd|_dSndS|d7}|Vq:dS)z$Provide an iterator object.
        Nrr#T)r�r�r�rFr1)r�rr�r7r7r8�__iter__l	s$
zTarFile.__iter__cCs||jkrt|tjd�dS)z.Write debugging output to sys.stderr.
        ��fileN)r�rkri�stderr)r��level�msgr7r7r8r��	s
zTarFile._dbgcCs|��|Sr�)r�r�r7r7r8�	__enter__�	szTarFile.__enter__cCs,|dkr|��n|js"|j��d|_dSr�)r�r�r�r�)r�r�r#�	tracebackr7r7r8�__exit__�	s


zTarFile.__exit__)
NrxNNNNNNr�NNNN)rxN)rxNr�)rxNr�)rxNN)NNN)T)NT)N)r�N)r�T)TF)NF)N)8rnrorprqr�r�r�r�rrSrr5r6rr�r�r�r�rur�rr�r�r�r�r�r�r�r�r�r�rXr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rFr�r�r�r�rr�rrr7r7r7r8r�s��
oZ �


c 3
(&�
1
6


	cCs2zt|�}|��WdStk
r,YdSXdS)zfReturn True if name points to a tar archive that we
       are able to handle, else return False.
    TFN)rr�r)r�r�r7r7r8r�	sc	Cs�ddl}d}|j|d�}|jdddddd	�|jd
d�}|jdd
ddd�|jdddddd�|jdddddd�|jddddd�|��}|jdk	�r|j}t|�r�t|d�� }|��t	|��t
jd�W5QRX|jr�t	d �
|��n|�d!d"�
|���n�|jdk	�r\|j}t|��rFt�|d#��}|j|jd$�W5QRXn|�d!d"�
|���nr|jdk	�r,t|j�d!k�r�|jd}tj}n,t|j�d%k�r�|j\}}n|�d!|���t|��rt�|d#��}|j|d&�W5QRX|j�r*|d'k�rd(�
|�}	nd)�
||�}	t	|	�n|�d!d"�
|��n�|jdk	�r�|j�d�}
tj�|
�\}}d*d*d+d+d,d,d,d,d-�}
||
k�r�d.|
|nd/}|j}t�|
|��}|D]}|�|��q�W5QRX|j�r�t	d0�
|
��dS)1Nrz3A simple command-line interface for tarfile module.)�descriptionz-vz	--verbose�
store_trueFzVerbose output)�action�default�helpT)Zrequiredz-lz--list�	<tarfile>zShow listing of a tarfile)�metavarrz-ez	--extract�+)rz<output_dir>zExtract tarfile into target dir)�nargsr rz-cz--create)z<name>z<file>zCreate tarfile from sourcesz-tz--testzTest if a tarfile is validrxrz{!r} is a tar archive.r#z{!r} is not a tar archive.
r�)r�r$)r%r�z{!r} file is extracted.z+{!r} file is extracted into {!r} directory.r�r�r�)r�z.tgzz.xzz.txzz.bz2z.tbzz.tbz2z.tb2zw:ryz{!r} file created.)�argparse�ArgumentParser�add_argumentZadd_mutually_exclusive_group�
parse_argsZtestrrr�rkrirr�rS�exitrXrr�r1r{�curdirZformat_helpr�Zcreate�popr%�splitextr�)r#r�parserrN�argsr_r�Ztfr(rZtar_name�_ZextZcompressionsZtar_modeZ	tar_files�	file_namer7r7r8�main�	s��
�
�
�
�



�
�
r/�__main__)^rq�version�
__author__�__credits__�builtinsrrrir{r�rZr�r�rVrrLr�r�r��AttributeError�NotImplementedErrorrr��	NameError�__all__r2r�r�rrrrrr�r.rgrerirkr�rmZCONTTYPErr
r/rrr>r
rrrrBrcr3r_rSrrHr`r�r�getfilesystemencodingr9r>rNrTrXr[rl�	Exceptionrr
rrr	rrrrsrtrKrurvr��objectr�r��BufferedReaderr�rrrr/rnr7r7r7r8�<module>s


�����
shD!W


Filemanager

Name Type Size Permission Actions
__future__.cpython-38.opt-1.pyc File 4.08 KB 0644
__future__.cpython-38.opt-2.pyc File 2.15 KB 0644
__future__.cpython-38.pyc File 4.08 KB 0644
__phello__.foo.cpython-38.opt-1.pyc File 142 B 0644
__phello__.foo.cpython-38.opt-2.pyc File 142 B 0644
__phello__.foo.cpython-38.pyc File 142 B 0644
_bootlocale.cpython-38.opt-1.pyc File 1.2 KB 0644
_bootlocale.cpython-38.opt-2.pyc File 1007 B 0644
_bootlocale.cpython-38.pyc File 1.23 KB 0644
_collections_abc.cpython-38.opt-1.pyc File 28.08 KB 0644
_collections_abc.cpython-38.opt-2.pyc File 23.14 KB 0644
_collections_abc.cpython-38.pyc File 28.08 KB 0644
_compat_pickle.cpython-38.opt-1.pyc File 5.33 KB 0644
_compat_pickle.cpython-38.opt-2.pyc File 5.33 KB 0644
_compat_pickle.cpython-38.pyc File 5.39 KB 0644
_compression.cpython-38.opt-1.pyc File 4.06 KB 0644
_compression.cpython-38.opt-2.pyc File 3.85 KB 0644
_compression.cpython-38.pyc File 4.06 KB 0644
_dummy_thread.cpython-38.opt-1.pyc File 5.91 KB 0644
_dummy_thread.cpython-38.opt-2.pyc File 3.33 KB 0644
_dummy_thread.cpython-38.pyc File 5.91 KB 0644
_markupbase.cpython-38.opt-1.pyc File 7.45 KB 0644
_markupbase.cpython-38.opt-2.pyc File 7.08 KB 0644
_markupbase.cpython-38.pyc File 7.62 KB 0644
_osx_support.cpython-38.opt-1.pyc File 11.34 KB 0644
_osx_support.cpython-38.opt-2.pyc File 8.71 KB 0644
_osx_support.cpython-38.pyc File 11.34 KB 0644
_py_abc.cpython-38.opt-1.pyc File 4.54 KB 0644
_py_abc.cpython-38.opt-2.pyc File 3.35 KB 0644
_py_abc.cpython-38.pyc File 4.58 KB 0644
_pydecimal.cpython-38.opt-1.pyc File 156.98 KB 0644
_pydecimal.cpython-38.opt-2.pyc File 77.28 KB 0644
_pydecimal.cpython-38.pyc File 156.98 KB 0644
_pyio.cpython-38.opt-1.pyc File 72.34 KB 0644
_pyio.cpython-38.opt-2.pyc File 49.98 KB 0644
_pyio.cpython-38.pyc File 72.36 KB 0644
_sitebuiltins.cpython-38.opt-1.pyc File 3.41 KB 0644
_sitebuiltins.cpython-38.opt-2.pyc File 2.9 KB 0644
_sitebuiltins.cpython-38.pyc File 3.41 KB 0644
_strptime.cpython-38.opt-1.pyc File 15.68 KB 0644
_strptime.cpython-38.opt-2.pyc File 12.04 KB 0644
_strptime.cpython-38.pyc File 15.68 KB 0644
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.opt-1.pyc File 28 KB 0644
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.opt-2.pyc File 28 KB 0644
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc File 28 KB 0644
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-38.opt-1.pyc File 27.87 KB 0644
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-38.opt-2.pyc File 27.87 KB 0644
_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-38.pyc File 27.87 KB 0644
_threading_local.cpython-38.opt-1.pyc File 6.31 KB 0644
_threading_local.cpython-38.opt-2.pyc File 3.07 KB 0644
_threading_local.cpython-38.pyc File 6.31 KB 0644
_weakrefset.cpython-38.opt-1.pyc File 7.44 KB 0644
_weakrefset.cpython-38.opt-2.pyc File 7.44 KB 0644
_weakrefset.cpython-38.pyc File 7.44 KB 0644
abc.cpython-38.opt-1.pyc File 5.22 KB 0644
abc.cpython-38.opt-2.pyc File 3.15 KB 0644
abc.cpython-38.pyc File 5.22 KB 0644
aifc.cpython-38.opt-1.pyc File 24.89 KB 0644
aifc.cpython-38.opt-2.pyc File 19.81 KB 0644
aifc.cpython-38.pyc File 24.89 KB 0644
antigravity.cpython-38.opt-1.pyc File 812 B 0644
antigravity.cpython-38.opt-2.pyc File 668 B 0644
antigravity.cpython-38.pyc File 812 B 0644
argparse.cpython-38.opt-1.pyc File 60.69 KB 0644
argparse.cpython-38.opt-2.pyc File 51.66 KB 0644
argparse.cpython-38.pyc File 60.83 KB 0644
ast.cpython-38.opt-1.pyc File 16.35 KB 0644
ast.cpython-38.opt-2.pyc File 10.11 KB 0644
ast.cpython-38.pyc File 16.38 KB 0644
asynchat.cpython-38.opt-1.pyc File 6.71 KB 0644
asynchat.cpython-38.opt-2.pyc File 5.36 KB 0644
asynchat.cpython-38.pyc File 6.71 KB 0644
asyncore.cpython-38.opt-1.pyc File 15.67 KB 0644
asyncore.cpython-38.opt-2.pyc File 14.49 KB 0644
asyncore.cpython-38.pyc File 15.67 KB 0644
base64.cpython-38.opt-1.pyc File 16.53 KB 0644
base64.cpython-38.opt-2.pyc File 11.07 KB 0644
base64.cpython-38.pyc File 16.69 KB 0644
bdb.cpython-38.opt-1.pyc File 24.35 KB 0644
bdb.cpython-38.opt-2.pyc File 15.53 KB 0644
bdb.cpython-38.pyc File 24.35 KB 0644
binhex.cpython-38.opt-1.pyc File 11.86 KB 0644
binhex.cpython-38.opt-2.pyc File 11.34 KB 0644
binhex.cpython-38.pyc File 11.86 KB 0644
bisect.cpython-38.opt-1.pyc File 2.31 KB 0644
bisect.cpython-38.opt-2.pyc File 1.03 KB 0644
bisect.cpython-38.pyc File 2.31 KB 0644
bz2.cpython-38.opt-1.pyc File 11.19 KB 0644
bz2.cpython-38.opt-2.pyc File 6.25 KB 0644
bz2.cpython-38.pyc File 11.19 KB 0644
cProfile.cpython-38.opt-1.pyc File 5.37 KB 0644
cProfile.cpython-38.opt-2.pyc File 4.92 KB 0644
cProfile.cpython-38.pyc File 5.37 KB 0644
calendar.cpython-38.opt-1.pyc File 26.44 KB 0644
calendar.cpython-38.opt-2.pyc File 21.96 KB 0644
calendar.cpython-38.pyc File 26.44 KB 0644
cgi.cpython-38.opt-1.pyc File 25.94 KB 0644
cgi.cpython-38.opt-2.pyc File 17.71 KB 0644
cgi.cpython-38.pyc File 25.94 KB 0644
cgitb.cpython-38.opt-1.pyc File 9.93 KB 0644
cgitb.cpython-38.opt-2.pyc File 8.37 KB 0644
cgitb.cpython-38.pyc File 9.93 KB 0644
chunk.cpython-38.opt-1.pyc File 4.74 KB 0644
chunk.cpython-38.opt-2.pyc File 2.65 KB 0644
chunk.cpython-38.pyc File 4.74 KB 0644
cmd.cpython-38.opt-1.pyc File 12.34 KB 0644
cmd.cpython-38.opt-2.pyc File 7.05 KB 0644
cmd.cpython-38.pyc File 12.34 KB 0644
code.cpython-38.opt-1.pyc File 9.7 KB 0644
code.cpython-38.opt-2.pyc File 4.55 KB 0644
code.cpython-38.pyc File 9.7 KB 0644
codecs.cpython-38.opt-1.pyc File 33.17 KB 0644
codecs.cpython-38.opt-2.pyc File 17.97 KB 0644
codecs.cpython-38.pyc File 33.17 KB 0644
codeop.cpython-38.opt-1.pyc File 6.28 KB 0644
codeop.cpython-38.opt-2.pyc File 2.32 KB 0644
codeop.cpython-38.pyc File 6.28 KB 0644
colorsys.cpython-38.opt-1.pyc File 3.18 KB 0644
colorsys.cpython-38.opt-2.pyc File 2.59 KB 0644
colorsys.cpython-38.pyc File 3.18 KB 0644
compileall.cpython-38.opt-1.pyc File 9.2 KB 0644
compileall.cpython-38.opt-2.pyc File 6.88 KB 0644
compileall.cpython-38.pyc File 9.2 KB 0644
configparser.cpython-38.opt-1.pyc File 44.66 KB 0644
configparser.cpython-38.opt-2.pyc File 30.08 KB 0644
configparser.cpython-38.pyc File 44.66 KB 0644
contextlib.cpython-38.opt-1.pyc File 19.72 KB 0644
contextlib.cpython-38.opt-2.pyc File 14.27 KB 0644
contextlib.cpython-38.pyc File 19.77 KB 0644
contextvars.cpython-38.opt-1.pyc File 258 B 0644
contextvars.cpython-38.opt-2.pyc File 258 B 0644
contextvars.cpython-38.pyc File 258 B 0644
copy.cpython-38.opt-1.pyc File 6.84 KB 0644
copy.cpython-38.opt-2.pyc File 4.58 KB 0644
copy.cpython-38.pyc File 6.84 KB 0644
copyreg.cpython-38.opt-1.pyc File 4.2 KB 0644
copyreg.cpython-38.opt-2.pyc File 3.41 KB 0644
copyreg.cpython-38.pyc File 4.23 KB 0644
crypt.cpython-38.opt-1.pyc File 3.32 KB 0644
crypt.cpython-38.opt-2.pyc File 2.68 KB 0644
crypt.cpython-38.pyc File 3.32 KB 0644
csv.cpython-38.opt-1.pyc File 11.65 KB 0644
csv.cpython-38.opt-2.pyc File 9.65 KB 0644
csv.cpython-38.pyc File 11.65 KB 0644
dataclasses.cpython-38.opt-1.pyc File 23.11 KB 0644
dataclasses.cpython-38.opt-2.pyc File 19.75 KB 0644
dataclasses.cpython-38.pyc File 23.11 KB 0644
datetime.cpython-38.opt-1.pyc File 54.64 KB 0644
datetime.cpython-38.opt-2.pyc File 46.4 KB 0644
datetime.cpython-38.pyc File 55.85 KB 0644
decimal.cpython-38.opt-1.pyc File 374 B 0644
decimal.cpython-38.opt-2.pyc File 374 B 0644
decimal.cpython-38.pyc File 374 B 0644
difflib.cpython-38.opt-1.pyc File 58.02 KB 0644
difflib.cpython-38.opt-2.pyc File 24.35 KB 0644
difflib.cpython-38.pyc File 58.06 KB 0644
dis.cpython-38.opt-1.pyc File 15.45 KB 0644
dis.cpython-38.opt-2.pyc File 11.73 KB 0644
dis.cpython-38.pyc File 15.45 KB 0644
doctest.cpython-38.opt-1.pyc File 73.97 KB 0644
doctest.cpython-38.opt-2.pyc File 39.49 KB 0644
doctest.cpython-38.pyc File 74.21 KB 0644
dummy_threading.cpython-38.opt-1.pyc File 1.1 KB 0644
dummy_threading.cpython-38.opt-2.pyc File 752 B 0644
dummy_threading.cpython-38.pyc File 1.1 KB 0644
enum.cpython-38.opt-1.pyc File 25.37 KB 0644
enum.cpython-38.opt-2.pyc File 20.56 KB 0644
enum.cpython-38.pyc File 25.37 KB 0644
filecmp.cpython-38.opt-1.pyc File 8.24 KB 0644
filecmp.cpython-38.opt-2.pyc File 5.89 KB 0644
filecmp.cpython-38.pyc File 8.24 KB 0644
fileinput.cpython-38.opt-1.pyc File 13.07 KB 0644
fileinput.cpython-38.opt-2.pyc File 7.6 KB 0644
fileinput.cpython-38.pyc File 13.07 KB 0644
fnmatch.cpython-38.opt-1.pyc File 3.29 KB 0644
fnmatch.cpython-38.opt-2.pyc File 2.11 KB 0644
fnmatch.cpython-38.pyc File 3.29 KB 0644
formatter.cpython-38.opt-1.pyc File 17.15 KB 0644
formatter.cpython-38.opt-2.pyc File 14.77 KB 0644
formatter.cpython-38.pyc File 17.15 KB 0644
fractions.cpython-38.opt-1.pyc File 18.31 KB 0644
fractions.cpython-38.opt-2.pyc File 11.1 KB 0644
fractions.cpython-38.pyc File 18.31 KB 0644
ftplib.cpython-38.opt-1.pyc File 27.37 KB 0644
ftplib.cpython-38.opt-2.pyc File 17.8 KB 0644
ftplib.cpython-38.pyc File 27.37 KB 0644
functools.cpython-38.opt-1.pyc File 27.26 KB 0644
functools.cpython-38.opt-2.pyc File 20.76 KB 0644
functools.cpython-38.pyc File 27.26 KB 0644
genericpath.cpython-38.opt-1.pyc File 3.92 KB 0644
genericpath.cpython-38.opt-2.pyc File 2.81 KB 0644
genericpath.cpython-38.pyc File 3.92 KB 0644
getopt.cpython-38.opt-1.pyc File 6.11 KB 0644
getopt.cpython-38.opt-2.pyc File 3.61 KB 0644
getopt.cpython-38.pyc File 6.14 KB 0644
getpass.cpython-38.opt-1.pyc File 4.09 KB 0644
getpass.cpython-38.opt-2.pyc File 2.94 KB 0644
getpass.cpython-38.pyc File 4.09 KB 0644
gettext.cpython-38.opt-1.pyc File 17.48 KB 0644
gettext.cpython-38.opt-2.pyc File 16.8 KB 0644
gettext.cpython-38.pyc File 17.48 KB 0644
glob.cpython-38.opt-1.pyc File 4.19 KB 0644
glob.cpython-38.opt-2.pyc File 3.35 KB 0644
glob.cpython-38.pyc File 4.26 KB 0644
gzip.cpython-38.opt-1.pyc File 17.77 KB 0644
gzip.cpython-38.opt-2.pyc File 14 KB 0644
gzip.cpython-38.pyc File 17.77 KB 0644
hashlib.cpython-38.opt-1.pyc File 6.58 KB 0644
hashlib.cpython-38.opt-2.pyc File 6.03 KB 0644
hashlib.cpython-38.pyc File 6.58 KB 0644
heapq.cpython-38.opt-1.pyc File 13.75 KB 0644
heapq.cpython-38.opt-2.pyc File 10.81 KB 0644
heapq.cpython-38.pyc File 13.75 KB 0644
hmac.cpython-38.opt-1.pyc File 6.25 KB 0644
hmac.cpython-38.opt-2.pyc File 3.79 KB 0644
hmac.cpython-38.pyc File 6.25 KB 0644
imaplib.cpython-38.opt-1.pyc File 38.26 KB 0644
imaplib.cpython-38.opt-2.pyc File 26.56 KB 0644
imaplib.cpython-38.pyc File 40.39 KB 0644
imghdr.cpython-38.opt-1.pyc File 4.04 KB 0644
imghdr.cpython-38.opt-2.pyc File 3.73 KB 0644
imghdr.cpython-38.pyc File 4.04 KB 0644
imp.cpython-38.opt-1.pyc File 9.59 KB 0644
imp.cpython-38.opt-2.pyc File 7.28 KB 0644
imp.cpython-38.pyc File 9.59 KB 0644
inspect.cpython-38.opt-1.pyc File 78.44 KB 0644
inspect.cpython-38.opt-2.pyc File 53.92 KB 0644
inspect.cpython-38.pyc File 78.72 KB 0644
io.cpython-38.opt-1.pyc File 3.39 KB 0644
io.cpython-38.opt-2.pyc File 1.93 KB 0644
io.cpython-38.pyc File 3.39 KB 0644
ipaddress.cpython-38.opt-1.pyc File 58.59 KB 0644
ipaddress.cpython-38.opt-2.pyc File 35.3 KB 0644
ipaddress.cpython-38.pyc File 58.59 KB 0644
keyword.cpython-38.opt-1.pyc File 1013 B 0644
keyword.cpython-38.opt-2.pyc File 586 B 0644
keyword.cpython-38.pyc File 1013 B 0644
linecache.cpython-38.opt-1.pyc File 3.79 KB 0644
linecache.cpython-38.opt-2.pyc File 2.71 KB 0644
linecache.cpython-38.pyc File 3.79 KB 0644
locale.cpython-38.opt-1.pyc File 33.89 KB 0644
locale.cpython-38.opt-2.pyc File 29.38 KB 0644
locale.cpython-38.pyc File 33.89 KB 0644
lzma.cpython-38.opt-1.pyc File 11.75 KB 0644
lzma.cpython-38.opt-2.pyc File 5.73 KB 0644
lzma.cpython-38.pyc File 11.75 KB 0644
mailbox.cpython-38.opt-1.pyc File 58.79 KB 0644
mailbox.cpython-38.opt-2.pyc File 52.34 KB 0644
mailbox.cpython-38.pyc File 58.87 KB 0644
mailcap.cpython-38.opt-1.pyc File 6.34 KB 0644
mailcap.cpython-38.opt-2.pyc File 4.86 KB 0644
mailcap.cpython-38.pyc File 6.34 KB 0644
mimetypes.cpython-38.opt-1.pyc File 15.67 KB 0644
mimetypes.cpython-38.opt-2.pyc File 9.8 KB 0644
mimetypes.cpython-38.pyc File 15.67 KB 0644
modulefinder.cpython-38.opt-1.pyc File 15.69 KB 0644
modulefinder.cpython-38.opt-2.pyc File 14.8 KB 0644
modulefinder.cpython-38.pyc File 15.75 KB 0644
netrc.cpython-38.opt-1.pyc File 3.7 KB 0644
netrc.cpython-38.opt-2.pyc File 3.47 KB 0644
netrc.cpython-38.pyc File 3.7 KB 0644
nntplib.cpython-38.opt-1.pyc File 33.19 KB 0644
nntplib.cpython-38.opt-2.pyc File 20.98 KB 0644
nntplib.cpython-38.pyc File 33.19 KB 0644
ntpath.cpython-38.opt-1.pyc File 14.33 KB 0644
ntpath.cpython-38.opt-2.pyc File 12.33 KB 0644
ntpath.cpython-38.pyc File 14.33 KB 0644
nturl2path.cpython-38.opt-1.pyc File 1.72 KB 0644
nturl2path.cpython-38.opt-2.pyc File 1.31 KB 0644
nturl2path.cpython-38.pyc File 1.72 KB 0644
numbers.cpython-38.opt-1.pyc File 11.93 KB 0644
numbers.cpython-38.opt-2.pyc File 8.16 KB 0644
numbers.cpython-38.pyc File 11.93 KB 0644
opcode.cpython-38.opt-1.pyc File 5.31 KB 0644
opcode.cpython-38.opt-2.pyc File 5.17 KB 0644
opcode.cpython-38.pyc File 5.31 KB 0644
operator.cpython-38.opt-1.pyc File 13.38 KB 0644
operator.cpython-38.opt-2.pyc File 11.07 KB 0644
operator.cpython-38.pyc File 13.38 KB 0644
optparse.cpython-38.opt-1.pyc File 46.86 KB 0644
optparse.cpython-38.opt-2.pyc File 34.84 KB 0644
optparse.cpython-38.pyc File 46.95 KB 0644
os.cpython-38.opt-1.pyc File 30.64 KB 0644
os.cpython-38.opt-2.pyc File 18.74 KB 0644
os.cpython-38.pyc File 30.68 KB 0644
pathlib.cpython-38.opt-1.pyc File 43.19 KB 0644
pathlib.cpython-38.opt-2.pyc File 34.71 KB 0644
pathlib.cpython-38.pyc File 43.19 KB 0644
pdb.cpython-38.opt-1.pyc File 46.08 KB 0644
pdb.cpython-38.opt-2.pyc File 32.34 KB 0644
pdb.cpython-38.pyc File 46.13 KB 0644
pickle.cpython-38.opt-1.pyc File 45.71 KB 0644
pickle.cpython-38.opt-2.pyc File 39.97 KB 0644
pickle.cpython-38.pyc File 45.82 KB 0644
pickletools.cpython-38.opt-1.pyc File 64.77 KB 0644
pickletools.cpython-38.opt-2.pyc File 55.89 KB 0644
pickletools.cpython-38.pyc File 65.64 KB 0644
pipes.cpython-38.opt-1.pyc File 7.63 KB 0644
pipes.cpython-38.opt-2.pyc File 4.83 KB 0644
pipes.cpython-38.pyc File 7.63 KB 0644
pkgutil.cpython-38.opt-1.pyc File 15.97 KB 0644
pkgutil.cpython-38.opt-2.pyc File 10.83 KB 0644
pkgutil.cpython-38.pyc File 15.97 KB 0644
platform.cpython-38.opt-1.pyc File 23.77 KB 0644
platform.cpython-38.opt-2.pyc File 16.08 KB 0644
platform.cpython-38.pyc File 23.77 KB 0644
plistlib.cpython-38.opt-1.pyc File 26.48 KB 0644
plistlib.cpython-38.opt-2.pyc File 23.5 KB 0644
plistlib.cpython-38.pyc File 26.54 KB 0644
poplib.cpython-38.opt-1.pyc File 13.16 KB 0644
poplib.cpython-38.opt-2.pyc File 8.34 KB 0644
poplib.cpython-38.pyc File 13.16 KB 0644
posixpath.cpython-38.opt-1.pyc File 10.2 KB 0644
posixpath.cpython-38.opt-2.pyc File 8.52 KB 0644
posixpath.cpython-38.pyc File 10.2 KB 0644
pprint.cpython-38.opt-1.pyc File 15.87 KB 0644
pprint.cpython-38.opt-2.pyc File 13.76 KB 0644
pprint.cpython-38.pyc File 15.91 KB 0644
profile.cpython-38.opt-1.pyc File 14.22 KB 0644
profile.cpython-38.opt-2.pyc File 11.31 KB 0644
profile.cpython-38.pyc File 14.43 KB 0644
pstats.cpython-38.opt-1.pyc File 21.56 KB 0644
pstats.cpython-38.opt-2.pyc File 19.1 KB 0644
pstats.cpython-38.pyc File 21.56 KB 0644
pty.cpython-38.opt-1.pyc File 3.88 KB 0644
pty.cpython-38.opt-2.pyc File 3.05 KB 0644
pty.cpython-38.pyc File 3.88 KB 0644
py_compile.cpython-38.opt-1.pyc File 7.23 KB 0644
py_compile.cpython-38.opt-2.pyc File 3.58 KB 0644
py_compile.cpython-38.pyc File 7.23 KB 0644
pyclbr.cpython-38.opt-1.pyc File 10.22 KB 0644
pyclbr.cpython-38.opt-2.pyc File 6.7 KB 0644
pyclbr.cpython-38.pyc File 10.22 KB 0644
pydoc.cpython-38.opt-1.pyc File 81.49 KB 0644
pydoc.cpython-38.opt-2.pyc File 72.17 KB 0644
pydoc.cpython-38.pyc File 81.54 KB 0644
queue.cpython-38.opt-1.pyc File 10.39 KB 0644
queue.cpython-38.opt-2.pyc File 6.16 KB 0644
queue.cpython-38.pyc File 10.39 KB 0644
quopri.cpython-38.opt-1.pyc File 5.46 KB 0644
quopri.cpython-38.opt-2.pyc File 4.45 KB 0644
quopri.cpython-38.pyc File 5.63 KB 0644
random.cpython-38.opt-1.pyc File 19.65 KB 0644
random.cpython-38.opt-2.pyc File 12.84 KB 0644
random.cpython-38.pyc File 19.65 KB 0644
re.cpython-38.opt-1.pyc File 14.1 KB 0644
re.cpython-38.opt-2.pyc File 5.96 KB 0644
re.cpython-38.pyc File 14.1 KB 0644
reprlib.cpython-38.opt-1.pyc File 5.19 KB 0644
reprlib.cpython-38.opt-2.pyc File 5.04 KB 0644
reprlib.cpython-38.pyc File 5.19 KB 0644
rlcompleter.cpython-38.opt-1.pyc File 5.63 KB 0644
rlcompleter.cpython-38.opt-2.pyc File 3.03 KB 0644
rlcompleter.cpython-38.pyc File 5.63 KB 0644
runpy.cpython-38.opt-1.pyc File 8 KB 0644
runpy.cpython-38.opt-2.pyc File 6.47 KB 0644
runpy.cpython-38.pyc File 8 KB 0644
sched.cpython-38.opt-1.pyc File 6.39 KB 0644
sched.cpython-38.opt-2.pyc File 3.44 KB 0644
sched.cpython-38.pyc File 6.39 KB 0644
secrets.cpython-38.opt-1.pyc File 2.15 KB 0644
secrets.cpython-38.opt-2.pyc File 1.12 KB 0644
secrets.cpython-38.pyc File 2.15 KB 0644
selectors.cpython-38.opt-1.pyc File 16.55 KB 0644
selectors.cpython-38.opt-2.pyc File 12.61 KB 0644
selectors.cpython-38.pyc File 16.55 KB 0644
shelve.cpython-38.opt-1.pyc File 9.28 KB 0644
shelve.cpython-38.opt-2.pyc File 5.23 KB 0644
shelve.cpython-38.pyc File 9.28 KB 0644
shlex.cpython-38.opt-1.pyc File 7.37 KB 0644
shlex.cpython-38.opt-2.pyc File 6.83 KB 0644
shlex.cpython-38.pyc File 7.37 KB 0644
shutil.cpython-38.opt-1.pyc File 36.36 KB 0644
shutil.cpython-38.opt-2.pyc File 25.17 KB 0644
shutil.cpython-38.pyc File 36.36 KB 0644
signal.cpython-38.opt-1.pyc File 2.79 KB 0644
signal.cpython-38.opt-2.pyc File 2.57 KB 0644
signal.cpython-38.pyc File 2.79 KB 0644
site.cpython-38.opt-1.pyc File 16.38 KB 0644
site.cpython-38.opt-2.pyc File 10.97 KB 0644
site.cpython-38.pyc File 16.38 KB 0644
smtpd.cpython-38.opt-1.pyc File 25.86 KB 0644
smtpd.cpython-38.opt-2.pyc File 23.3 KB 0644
smtpd.cpython-38.pyc File 25.86 KB 0644
smtplib.cpython-38.opt-1.pyc File 34.79 KB 0644
smtplib.cpython-38.opt-2.pyc File 18.81 KB 0644
smtplib.cpython-38.pyc File 34.85 KB 0644
sndhdr.cpython-38.opt-1.pyc File 6.84 KB 0644
sndhdr.cpython-38.opt-2.pyc File 5.59 KB 0644
sndhdr.cpython-38.pyc File 6.84 KB 0644
socket.cpython-38.opt-1.pyc File 27.11 KB 0644
socket.cpython-38.opt-2.pyc File 18.98 KB 0644
socket.cpython-38.pyc File 27.15 KB 0644
socketserver.cpython-38.opt-1.pyc File 24.78 KB 0644
socketserver.cpython-38.opt-2.pyc File 14.32 KB 0644
socketserver.cpython-38.pyc File 24.78 KB 0644
sre_compile.cpython-38.opt-1.pyc File 14.58 KB 0644
sre_compile.cpython-38.opt-2.pyc File 14.18 KB 0644
sre_compile.cpython-38.pyc File 14.8 KB 0644
sre_constants.cpython-38.opt-1.pyc File 6.22 KB 0644
sre_constants.cpython-38.opt-2.pyc File 5.81 KB 0644
sre_constants.cpython-38.pyc File 6.22 KB 0644
sre_parse.cpython-38.opt-1.pyc File 21.11 KB 0644
sre_parse.cpython-38.opt-2.pyc File 21.06 KB 0644
sre_parse.cpython-38.pyc File 21.15 KB 0644
ssl.cpython-38.opt-1.pyc File 43.57 KB 0644
ssl.cpython-38.opt-2.pyc File 32.84 KB 0644
ssl.cpython-38.pyc File 43.57 KB 0644
stat.cpython-38.opt-1.pyc File 4.28 KB 0644
stat.cpython-38.opt-2.pyc File 3.52 KB 0644
stat.cpython-38.pyc File 4.28 KB 0644
statistics.cpython-38.opt-1.pyc File 32.49 KB 0644
statistics.cpython-38.opt-2.pyc File 17.17 KB 0644
statistics.cpython-38.pyc File 32.88 KB 0644
string.cpython-38.opt-1.pyc File 7.14 KB 0644
string.cpython-38.opt-2.pyc File 6.06 KB 0644
string.cpython-38.pyc File 7.14 KB 0644
stringprep.cpython-38.opt-1.pyc File 10.72 KB 0644
stringprep.cpython-38.opt-2.pyc File 10.5 KB 0644
stringprep.cpython-38.pyc File 10.77 KB 0644
struct.cpython-38.opt-1.pyc File 345 B 0644
struct.cpython-38.opt-2.pyc File 345 B 0644
struct.cpython-38.pyc File 345 B 0644
subprocess.cpython-38.opt-1.pyc File 40.9 KB 0644
subprocess.cpython-38.opt-2.pyc File 29.25 KB 0644
subprocess.cpython-38.pyc File 41 KB 0644
sunau.cpython-38.opt-1.pyc File 16.69 KB 0644
sunau.cpython-38.opt-2.pyc File 12.21 KB 0644
sunau.cpython-38.pyc File 16.69 KB 0644
symbol.cpython-38.opt-1.pyc File 2.36 KB 0644
symbol.cpython-38.opt-2.pyc File 2.29 KB 0644
symbol.cpython-38.pyc File 2.36 KB 0644
symtable.cpython-38.opt-1.pyc File 10.98 KB 0644
symtable.cpython-38.opt-2.pyc File 10.21 KB 0644
symtable.cpython-38.pyc File 11.07 KB 0644
sysconfig.cpython-38.opt-1.pyc File 15.49 KB 0644
sysconfig.cpython-38.opt-2.pyc File 13.17 KB 0644
sysconfig.cpython-38.pyc File 15.49 KB 0644
tabnanny.cpython-38.opt-1.pyc File 6.88 KB 0644
tabnanny.cpython-38.opt-2.pyc File 5.97 KB 0644
tabnanny.cpython-38.pyc File 6.88 KB 0644
tarfile.cpython-38.opt-1.pyc File 61.18 KB 0644
tarfile.cpython-38.opt-2.pyc File 47.61 KB 0644
tarfile.cpython-38.pyc File 61.21 KB 0644
telnetlib.cpython-38.opt-1.pyc File 17.82 KB 0644
telnetlib.cpython-38.opt-2.pyc File 10.5 KB 0644
telnetlib.cpython-38.pyc File 17.82 KB 0644
tempfile.cpython-38.opt-1.pyc File 22.86 KB 0644
tempfile.cpython-38.opt-2.pyc File 16.49 KB 0644
tempfile.cpython-38.pyc File 22.86 KB 0644
textwrap.cpython-38.opt-1.pyc File 13.14 KB 0644
textwrap.cpython-38.opt-2.pyc File 6.1 KB 0644
textwrap.cpython-38.pyc File 13.22 KB 0644
this.cpython-38.opt-1.pyc File 1.25 KB 0644
this.cpython-38.opt-2.pyc File 1.25 KB 0644
this.cpython-38.pyc File 1.25 KB 0644
threading.cpython-38.opt-1.pyc File 38.52 KB 0644
threading.cpython-38.opt-2.pyc File 22.33 KB 0644
threading.cpython-38.pyc File 39.05 KB 0644
timeit.cpython-38.opt-1.pyc File 11.52 KB 0644
timeit.cpython-38.opt-2.pyc File 5.8 KB 0644
timeit.cpython-38.pyc File 11.52 KB 0644
token.cpython-38.opt-1.pyc File 2.44 KB 0644
token.cpython-38.opt-2.pyc File 2.41 KB 0644
token.cpython-38.pyc File 2.44 KB 0644
tokenize.cpython-38.opt-1.pyc File 16.73 KB 0644
tokenize.cpython-38.opt-2.pyc File 13.05 KB 0644
tokenize.cpython-38.pyc File 16.77 KB 0644
trace.cpython-38.opt-1.pyc File 19.57 KB 0644
trace.cpython-38.opt-2.pyc File 16.63 KB 0644
trace.cpython-38.pyc File 19.57 KB 0644
traceback.cpython-38.opt-1.pyc File 19.49 KB 0644
traceback.cpython-38.opt-2.pyc File 10.79 KB 0644
traceback.cpython-38.pyc File 19.49 KB 0644
tracemalloc.cpython-38.opt-1.pyc File 16.97 KB 0644
tracemalloc.cpython-38.opt-2.pyc File 15.59 KB 0644
tracemalloc.cpython-38.pyc File 16.97 KB 0644
tty.cpython-38.opt-1.pyc File 1.07 KB 0644
tty.cpython-38.opt-2.pyc File 982 B 0644
tty.cpython-38.pyc File 1.07 KB 0644
types.cpython-38.opt-1.pyc File 8.98 KB 0644
types.cpython-38.opt-2.pyc File 7.78 KB 0644
types.cpython-38.pyc File 8.98 KB 0644
typing.cpython-38.opt-1.pyc File 60.92 KB 0644
typing.cpython-38.opt-2.pyc File 44.57 KB 0644
typing.cpython-38.pyc File 60.97 KB 0644
uu.cpython-38.opt-1.pyc File 3.54 KB 0644
uu.cpython-38.opt-2.pyc File 3.3 KB 0644
uu.cpython-38.pyc File 3.54 KB 0644
uuid.cpython-38.opt-1.pyc File 23.01 KB 0644
uuid.cpython-38.opt-2.pyc File 16.02 KB 0644
uuid.cpython-38.pyc File 23.14 KB 0644
warnings.cpython-38.opt-1.pyc File 12.9 KB 0644
warnings.cpython-38.opt-2.pyc File 10.68 KB 0644
warnings.cpython-38.pyc File 13.35 KB 0644
wave.cpython-38.opt-1.pyc File 17.69 KB 0644
wave.cpython-38.opt-2.pyc File 11.84 KB 0644
wave.cpython-38.pyc File 17.74 KB 0644
weakref.cpython-38.opt-1.pyc File 19.05 KB 0644
weakref.cpython-38.opt-2.pyc File 15.84 KB 0644
weakref.cpython-38.pyc File 19.08 KB 0644
webbrowser.cpython-38.opt-1.pyc File 16.7 KB 0644
webbrowser.cpython-38.opt-2.pyc File 14.35 KB 0644
webbrowser.cpython-38.pyc File 16.73 KB 0644
xdrlib.cpython-38.opt-1.pyc File 8.04 KB 0644
xdrlib.cpython-38.opt-2.pyc File 7.57 KB 0644
xdrlib.cpython-38.pyc File 8.04 KB 0644
zipapp.cpython-38.opt-1.pyc File 5.73 KB 0644
zipapp.cpython-38.opt-2.pyc File 4.58 KB 0644
zipapp.cpython-38.pyc File 5.73 KB 0644
zipfile.cpython-38.opt-1.pyc File 57.12 KB 0644
zipfile.cpython-38.opt-2.pyc File 48.64 KB 0644
zipfile.cpython-38.pyc File 57.16 KB 0644
zipimport.cpython-38.opt-1.pyc File 16.78 KB 0644
zipimport.cpython-38.opt-2.pyc File 13.35 KB 0644
zipimport.cpython-38.pyc File 16.88 KB 0644