Mini Kabibi Habibi

Current Path : C:/Users/ITO/AppData/Local/Programs/Python/Python314/Lib/__pycache__/
Upload File :
Current File : C:/Users/ITO/AppData/Local/Programs/Python/Python314/Lib/__pycache__/tarfile.cpython-314.pyc

+
��hb����RtRtRtRt^RIHt^RIt^RIt^RI	t	^RI
t
^RIt^RIt^RI
t
^RIt^RIt^RIt^RIt]]]3t.RdOtRtRt]^,tRtRt^dt^dt^�tRt Rt!Rt"Rt#Rt$Rt%Rt&Rt'R t(R!t)R"t*R#t+R$t,R%t-R&t.^t/^t0^t1]1t2] ]!]"]#]&]'](]$]%])]*]+3t3] ]!](]+3t4])]*]+3t5Ret60Rfmt7R+]8R,]8R(]8R)]9R*]9R']9/t:]PvR-8XdR.t<M]Pz!4t<R/t>R0t?R1t@^]23R2ltAR3tBR]R3R4ltCR5tD!R6R]E4tF!R7R]F4tG!R8R	]F4tH!R9R
]F4tI!R:R]F4tJ!R;R
]F4tK!R<R=]K4tL!R>R?]K4tM!R@RA]K4tN!RBRC]K4tO!RDRE]K4tP!RFRG4tQ!RHRI4tR!RJRK]S4tT!RLRM]S4tU!RNRO]	P�4tW!RPR]F4tX!RQR]X4tY!RRR]X4tZ!RSR]X4t[!RTR]X4t\!RUR]X4t]!RVR]X4t^]X]]G3t_RgRWlt`RXtaRYtbRZtcR[]aR\]bR]]c/td]S!4te]P�!R^4tg!R_R]S4th!R`R]S4tiRatj]iP
tRbtk]lRc8Xd
]k!4R#R# ]dRtEL:i;i ]dRtELEi;i)hz,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�TarError�	ReadError�CompressionError�StreamError�ExtractError�HeaderError�FilterError�AbsoluteLinkError�OutsideDestinationError�SpecialFileError�AbsolutePathError�LinkOutsideDestinationError�LinkFallbackError�isustar  sustar00�0�1�2�3�4�5�6�7�L�K�S�x�g�X�size�mtime�uid�gid�atime�ctime�nt�utf-8c��Vf\R4hVPW#4pVRVV\V4,
\,,#)z8Convert a string to a null-terminated bytes object.
    Nzmetadata cannot contain None)�
ValueError�encode�len�NUL)�s�length�encoding�errorss&&&&�CC:\Users\ITO\AppData\Local\Programs\Python\Python314\Lib\tarfile.py�stnr3�sA��	�y��7�8�8�	����"�A��W�f�:��#�a�&��C�/�/�/�c�^�VPR4pVR8wdVRVpVPW4#)z8Convert a null-terminated bytes object to a string.
    rN���)�find�decode)r.r0r1�ps&&& r2�ntsr:�s2��	
���u�
�A��B�w�
�b�q�E���8�8�H�%�%r4c��V^,R9du^p\\V4^,
4F"pV^,pWV^,,,
pK$	V^,^�8Xd"R\V4^,
,V,
)pV#\VRR4p\VP	4;'gR^4pV# \
d
\
R4hi;i)z/Convert a number field to a python number.
    ��ascii�strict�0�invalid header)��)�ranger,r:�int�stripr*�InvalidHeaderError)r.�n�is&  r2�ntirI�s���
	��t�~��
���s�1�v��z�"�A�
�!�G�A�
�1�q�5��M�A�#�
�Q�4�5�=��#�a�&�1�*�%��)�*�A�
�H�	7��A�w��)�A��A�G�G�I�$�$��a�(�A�
�H���	7�$�%5�6�6�	7�s�(B7�-B7�7Cc��Tp\V4p^Tu;8:d^V^,
,8d-MM)\RV^,
V3,R4\,pV#V\8Xd�RV^,
,)Tu;8:dRV^,
,8dqMMmV^8�d\	^�.4pM\	^�.4pRV,V,p\V^,
4F%pVP
^V^�,4V^,pK'	V#\R4h)z/Convert a python number to a number field.
    z%0*or=r<zoverflow in number field)rD�bytesr-�
GNU_FORMAT�	bytearrayrC�insertr*)rG�digits�format�
original_nr.rHs&&&   r2�itnrR�s����J��A��A��A�!��f�q�j�!�!��&�F�Q�J��?�*�G�4�s�:��
�H�
�:�	�3�6�A�:�#6�"6�!�"Q�c�f�q�j�>Q�"Q���6��5�'�"�A��5�'�"�A��v�
��!�A��v��z�"�A�
�H�H�Q��E�	�"�
�!�G�A�#�
�H��3�4�4r4c��R\\P!RV44,pR\\P!RV44,pW3#)azCalculate 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.
r<�
148B8x356B�
148b8x356b)�sum�struct�unpack_from)�buf�unsigned_chksum�
signed_chksums&  r2�calc_chksumsr\�sE���C�� 2� 2�<�� E�F�F�O��#�f�0�0��s�C�D�D�M��)�)r4c��T;'gRpV^8XdR#Vf\P!WV4R#\W$4wrV\V4F=pVP	V4p\V4V8d	V!R4hVP
V4K?	V^8wd;VP	V4p\V4V8d	V!R4hVP
V4R#)z_Copy length bytes from fileobj src to fileobj dst.
If length is None, copy the entire content.
N�unexpected end of datai@)�shutil�copyfileobj�divmodrC�readr,�write)	�src�dstr/�	exception�bufsize�blocks�	remainder�brYs	&&&&&    r2r`r`�s����"�"��G�
��{��
�~����3�W�-���v�/��F�
�6�]���h�h�w����s�8�g���4�5�5��	�	�#��	��A�~��h�h�y�!���s�8�i���4�5�5��	�	�#��
r4c��\\PRR4pVe"VPVR4P	V4p\VRR7R#)r0N�backslashreplace� )�end)�getattr�sys�stdoutr+r8�print)r.r0s& r2�_safe_printrss@���s�z�z�:�t�4�H���
�H�H�X�1�2�9�9�(�C��	�!��r4c��]tRtRtRtRtR#)rizBase exception.�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__rur4r2rrs���r4c��]tRtRtRtRtR#)r	iz%General exception for extract errors.ruNrvrur4r2r	r	s��/�r4c��]tRtRtRtRtR#)riz&Exception for unreadable tar archives.ruNrvrur4r2rrs��0�r4c��]tRtRtRtRtR#)riz.Exception for unavailable compression methods.ruNrvrur4r2rrs��8�r4c��]tRtRtRtRtR#)riz=Exception for unsupported operations on stream-like TarFiles.ruNrvrur4r2rrs��G�r4c��]tRtRtRtRtR#)r
iz!Base exception for header errors.ruNrvrur4r2r
r
s��+�r4c��]tRtRtRtRtR#)�EmptyHeaderErrorizException for empty headers.ruNrvrur4r2r�r�s��&�r4r�c��]tRtRtRtRtR#)�TruncatedHeaderErrori!z Exception for truncated headers.ruNrvrur4r2r�r�!s��*�r4r�c��]tRtRtRtRtR#)�EOFHeaderErrori$z"Exception for end of file headers.ruNrvrur4r2r�r�$s��,�r4r�c��]tRtRtRtRtR#)rFi'zException for invalid headers.ruNrvrur4r2rFrF's��(�r4rFc��]tRtRtRtRtR#)�SubsequentHeaderErrori*z3Exception for missing and invalid extended headers.ruNrvrur4r2r�r�*s��=�r4r�c�<a�]tRtRtoRtRtRtRtRtRt	Vt
R#)	�
_LowLevelFilei1zwLow-level file object. Supports reading and writing.
It is used instead of a regular file object for streaming
access.
c�>�R\PR\P\P,\P,/V,p\\R4'dV\P,p\P!WR4VnR#)�r�w�O_BINARYi�N)	�os�O_RDONLY�O_WRONLY�O_CREAT�O_TRUNC�hasattrr�r�fd)�self�name�modes&&&r2�__init__�_LowLevelFile.__init__7sf����������r�z�z�)�B�J�J�6�
�����2�z�"�"��B�K�K��D��'�'�$�e�,��r4c�F�\P!VP4R#�N)r��closer��r�s&r2r��_LowLevelFile.close@s��
������r4c�D�\P!VPV4#r�)r�rbr��r�r!s&&r2rb�_LowLevelFile.readCs���w�w�t�w�w��%�%r4c�H�\P!VPV4R#r�)r�rcr��r�r.s&&r2rc�_LowLevelFile.writeFs��
������!�r4)r�N)rwrxryrzr{r�r�rbrcr|�__classdictcell__��
__classdict__s@r2r�r�1s#�����
-��&��r4r�c�pa�]tRtRtoRtRtRtRtRtRt	Rt
R	tR
tRRlt
RtR
tRtRtVtR#)�_StreamiIa�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 that works with bytes,
and the method is accessed blockwise.
Use of gzip or bzip2 compression is possible.
A stream-like object could be for example: sys.stdin.buffer,
sys.stdout.buffer, a socket, a tape device etc.

_Stream is intended to be used only internally.
c�\�RVnVf\W4pRVnVR8Xd\V4pVP4pT;'gRVnW nW0nW@nWPnRVn	^Vn
RVnVR8Xd_^RIpY�nTPR4TnTR	8Xd$TP"TnTP'4R#TP)T4R#VR
8XdN^RIp	TR	8Xd*RTnT	P/4Tn\2TnR#T	P5T4TnR#VR8XdU^RIp
TR	8Xd0RTnT
P94TnT
P:TnR#T
P=TR7TnR#VR8XdU^RIH pTR	8Xd0RTnTPC4TnTPDTnR#TPG4TnR#VR8wd\RV,4hR# \d\R4Rhi;i \d\R4Rhi;i \d\R
4Rhi;i \d\R4Rhi;i TP'gTPPI4RTnh;i)z$Construct a _Stream object.
        TNF�*�r4�gzzzlib module is not availabler��bz2�bz2 module is not available�xz�lzma module is not available��preset�zst)�zstd�(compression.zstd module is not available�tar�unknown compression type %r)%�_extfileobjr��_StreamProxy�getcomptyper�r��comptype�fileobjrgrY�pos�closed�zlib�ImportErrorr�crc32�crc�errorrf�
_init_read_gz�_init_write_gzr��dbuf�BZ2Decompressor�cmp�OSError�
BZ2Compressor�lzma�LZMADecompressor�	LZMAError�LZMACompressor�compressionr��ZstdDecompressor�	ZstdError�ZstdCompressorr�)r�r�r�r�r�rg�
compresslevelr�r�r�r�r�s&&&&&&&&    r2r��_Stream.__init__Us��� ����?�#�D�/�G�$�D���s�?�#�7�+�G��*�*�,�H��
�
���	��	� �
��������������7	��4��U��!�	��:�:�c�?����3�;�%)�Z�Z�D�N��&�&�(��'�'�
�6��U�"�T���3�;� #�D�I�"�2�2�4�D�H�%,�D�N�"�0�0��?�D�H��T�!�U���3�;� #�D�I�#�4�4�6�D�H�%)�^�^�D�N�#�2�2�&�2�A�D�H��U�"�a�0��3�;� #�D�I�#�4�4�6�D�H�%)�^�^�D�N�#�2�2�4�D�H��U�"�&�'D�x�'O�P�P�#��Y#�U�*�+I�J�PT�T�U��#�T�*�+H�I�t�S�T��#�U�*�+I�J�PT�T�U��#�a�*�+U�V�\`�`�a��	��#�#�#����"�"�$��D�K��s��?I5�H	�AI5�I5�$I5�,H$�0.I5� I5�8I5�H?�4I5�:I5�I5�I�!4I5�I5�.I5�	H!�!I5�$H<�<I5�?I�I5�I2�2I5�56J+c�v�\VR4'd'VP'gVP4R#R#R#)r�N)r�r�r�r�s&r2�__del__�_Stream.__del__�s(���4��"�"�4�;�;�;��J�J�L�,7�"r4c��VPPVVPPVPP)VPP^4Vn\P!R\\P!444pVPRV,R,4VPPR4'dVPRRVn\PPVP4VnVPVPP!RR4\",4R#)	z6Initialize for writing with gzip compression.
        �<Ls�s��.gzNz
iso-8859-1�replace���)r��compressobj�DEFLATED�	MAX_WBITS�
DEF_MEM_LEVELr�rW�packrD�time�_Stream__writer��endswithr��path�basenamer+r-)r�r��	timestamps&& r2r��_Stream._init_write_gz�s����9�9�(�(��)-���);�);�*.�)�)�*=�*=�)=�)-���)@�)@�)*�	,���
�K�K��c�$�)�)�+�&6�7�	����(�9�4�{�B�C��9�9���e�$�$��	�	�#�2��D�I��G�G�$�$�T�Y�Y�/��	����T�Y�Y�%�%�l�I�>��D�Er4c�:�VPR8Xd+VPPWP4VnV;P\V4,
unVPR8wdVPPV4pVPV4R#)z&Write string s to the stream.
        r�r�N)	r�r�r�r�r�r,r��compressr�r�s&&r2rc�
_Stream.write�se���=�=�D� ��y�y���q�(�(�3�D�H����C��F����=�=�E�!����!�!�!�$�A����Q�r4c�$�V;PV,
un\VP4VP8�dSVPP	VPRVP4VPVPRVnKvR#)zJWrite string s to the stream if a whole new block
is ready to be written.
N)rYr,rgr�rcr�s&&r2�__write�_Stream.__write�sa��	
���A�
���$�(�(�m�d�l�l�*��L�L���t�x�x�
����6�7��x�x����
�.�D�H�+r4c�Z�VP'dR#RVnVPR8XdCVPR8wd2V;PVPP4,
unVPR8Xd�VP'd�VPPVP4RVnVPR8Xd|VPP\P!RVP44VPP\P!RVPR,44VP'gVPP4R#R# TP'gTPP4ii;i)	zHClose the _Stream object. No operation should be
done on it afterwards.
NTr�r�r4r�r�l��)r�r�r�rYr��flushr�rcrWr�r�r�r�r�r�s&r2r��
_Stream.close�s���;�;�;�����	%��y�y�C��D�M�M�U�$:����D�H�H�N�N�,�,���y�y�C��D�H�H�H����"�"�4�8�8�,�����=�=�D�(��L�L�&�&�v�{�{�4����'B�C��L�L�&�&�v�{�{�4����J�9N�'O�P��#�#�#����"�"�$�$��4�#�#�#����"�"�$�$�s�A5E;�B8E;�;/F*c�8�VPPVPP)4VnRVnVP^4R8wd\
R4hVP^4R8wd\R4h\VP^44pVP^4V^,'dR\VP^44R\VP^44,,pVPV4V^,'d)VP^4pV'dV\8XgK'V^,'d)VP^4pV'dV\8XgK'V^,'dVP^4R#R#)z:Initialize for reading a gzip compressed fileobj.
        r4s��not a gzip file�zunsupported compression methodr<N)r��
decompressobjr�r�r��
_Stream__readrr�ordrbr-)r��flag�xlenr.s&   r2r��_Stream._init_read_gz�s%���9�9�*�*�D�I�I�,?�,?�+?�@�����	��;�;�q�>�[�(��-�.�.��;�;�q�>�W�$�"�#C�D�D��4�;�;�q�>�"�����A���!�8�8��t�{�{�1�~�&��s�4�;�;�q�>�/B�)B�B�D��I�I�d�O��!�8�8���K�K��N���A��H���"�9�9���K�K��N���A��H���!�8�8��K�K��N�r4c��VP#)z3Return the stream's file pointer position.
        )r�r�s&r2�tell�_Stream.tells
���x�x�r4c�*�WP,
^8�ds\WP,
VP4wr#\V4FpVP	VP4K 	VP	V4VP#\R4h)zESet the stream's file pointer to pos. Negative seeking
is forbidden.
z seeking backwards is not allowed)r�rargrCrbr)r�r�rhrirHs&&   r2�seek�_Stream.seeksn�����>�Q�� &�s�X�X�~�t�|�|� D��F��6�]���	�	�$�,�,�'�#��I�I�i� ��x�x���@�A�Ar4c�x�VfQhVPV4pV;P\V4,
unV#)z5Return the next size number of bytes from the stream.)�_readr�r,)r�r!rYs&& r2rb�_Stream.reads3�������j�j�������C��H����
r4c�H�VPR8XdVPV4#\VP4pVP.pW!8d�VP'dVPpRVnM.VP
P
VP4pV'gMAVPPV4pTPT4T\T4,
pK�RPV4pW1RVnVRV# TPdp\R4ThRp?ii;i)z+Return size bytes from the stream.
        r�r4zinvalid compressed dataN)r�r�r,r�rYr�rbrgr��
decompressrfr�append�join)r�r!�c�trY�es&&    r2r�
_Stream._reads����=�=�E�!��;�;�t�$�$���	�	�N��
�Y�Y�K���h��x�x�x��h�h������l�l�'�'����5����
B��h�h�)�)�#�.��
�H�H�S�M�
��S��M�A��H�H�Q�K���e�H��	���$�x���
�>�>�
B�� 9�:��A��
B�s� C?�?D!�D�D!c�6�\VP4pVP.pW!8dTVPPVP4pV'gM%VPV4V\V4,
pKYRP
V4pW1RVnVRV#)z`Return size bytes from stream. If internal buffer is empty,
read another block from the stream.
r4N)r,rYr�rbrgr
r)r�r!rr
rYs&&   r2�__read�_Stream.__read7sz��
����M��
�X�X�J���h��,�,�#�#�D�L�L�1�C���
�H�H�S�M�
��S��M�A��H�H�Q�K���U�8�����$�x�r4)r�rYrgr�r�r�r�r�rfr�r�r�r�r�N)�)rwrxryrzr{r�r�r�rcr�r�r�rrrbrr�r|r�r�s@r2r�r�IsN����	�O�b�F�"�/�%�,�>�
���6�r4r�c�<a�]tRtRtoRtRtRtRtRtRt	Vt
R#)	r�iHzhSmall proxy class that enables transparent compression
detection for the Stream interface (mode 'r|*').
c�Z�WnVPP\4VnR#r�)r�rb�	BLOCKSIZErY)r�r�s&&r2r��_StreamProxy.__init__Ms�����<�<�$�$�Y�/��r4c�P�VPPVnVP#r�)r�rbrYr�s&&r2rb�_StreamProxy.readQs���L�L�%�%��	��x�x�r4c�<�VPPR4'dR#VPR,R8XdVPR,R8XdR#VPPR4'dR#VPPR4'dR	#R
#)s�r�:r�NsBZh:��
Ns1AY&SYr�r�s(�/�r�r�)s]�s�7zXZ)rY�
startswithr�s&r2r��_StreamProxy.getcomptypeUsq���8�8����/�/��
�X�X�c�]�f�
$����$��9�)D��
�X�X�
 �
 �!C�
D�
D��
�X�X�
 �
 �!4�
5�
5��r4c�:�VPP4R#r�)r�r�r�s&r2r��_StreamProxy.closeas�������r4)rYr�rbN)rwrxryrzr{r�rbr�r�r|r�r�s@r2r�r�Hs#�����0��
��r4r�c�a�]tRtRtoRtRRltRt]R4tRt	Rt
R	tR
t]
P3RltRRltR
tRtRtVtR#)�_FileInFileihzmA thin wrapper around an existing file object that
provides a part of its data as an individual file
object.
Nc���WnW nW0n^VnW@nRVnVf^V3.p^Vn.Vn^pVPpVF^wr#W&8�dVPPRWbR34VPPRW"V,V34Ws,
pW#,pK`	W`P8d+VPPRW`PR34R#R#)rFNT)	r��offsetr!�positionr�r��	map_index�mapr
)r�r�r%r!r��	blockinfo�lastpos�realposs&&&&&&  r2r��_FileInFile.__init__ns��������	���
��	�������T���I����������+�+��%�L�F����������� >�?��H�H�O�O�T�6�D�=�'�B�C��O�G��m�G�&��Y�Y���H�H�O�O�U�G�Y�Y��=�>�r4c��R#r�rur�s&r2r��_FileInFile.flush�s��r4c��R#)�rbrur�s&r2r��_FileInFile.mode�s��r4c��R#�Trur�s&r2�readable�_FileInFile.readable�s��r4c��R#)Frur�s&r2�writable�_FileInFile.writable�s��r4c�6�VPP4#r�)r��seekabler�s&r2r:�_FileInFile.seekable�s���|�|�$�$�&�&r4c��VP#)z*Return the current file position.
        )r&r�s&r2r�_FileInFile.tell�����}�}�r4c�X�V\P8Xd2\\V^4VP4VnVP
#V\P8XdoV^8d/\VP
V,^4VnVP
#\VP
V,VP4VnVP
#V\P8XdC\\VPV,VP4^4VnVP
#\R4h)z(Seek to a position in the file.
        zInvalid argument)	�io�SEEK_SET�min�maxr!r&�SEEK_CUR�SEEK_ENDr*)r�r&�whences&&&r2r�_FileInFile.seek�s����R�[�[� ���H�a� 0�$�)�)�<�D�M��}�}���r�{�{�
"��!�|� #�D�M�M�H�$<�a� @��
��}�}��!$�D�M�M�H�$<�d�i�i� H��
�
�}�}��	�r�{�{�
"���D�I�I��$8�$�)�)� D�a�H�D�M��}�}���/�0�0r4c�N�VfVPVP,
pM&\WPVP,
4pRpV^8�EdSVPVP,wr4rVW@Pu;8:dV8dMMMHV;P^,
unVP\VP48XgK|^VnK�\WVP,
4pV'drVPPW`PV,
,4VPPV4p\V4V8wd\R4hW(,
pMV\V,,
pW,pV;PV,
unEKZV#)z!Read data from the file.
        r4r^)r!r&rBr(r'r,r�rrbrr-)	r�r!rY�data�start�stopr%r/rjs	&&       r2rb�_FileInFile.read�s$���<��9�9�t�}�}�,�D��t�Y�Y����6�7�D����Q�h��,0�H�H�T�^�^�,D�)��T��M�M�0�D�0���N�N�a�'�N��~�~��T�X�X��6�)*�����d�m�m�3�4�F�����!�!�&�M�M�E�,A�"B�C��L�L�%�%�f�-���q�6�V�#�#�$<�=�=�����s�V�|�#���N�D��M�M�V�#�M�M��
r4c�f�VP\V44pW!R\V4%\V4#r�)rbr,)r�rjrYs&& r2�readinto�_FileInFile.readinto�s*���i�i��A�����)�3�s�8���3�x�r4c��RVnR#)TN)r�r�s&r2r��_FileInFile.close�s	����r4)r�r�r(r'r�r%r&r!r�)rwrxryrzr{r�r��propertyr�r4r7r:rr@rArrbrNr�r|r�r�s@r2r#r#hs^�����
?�2
�������'��
%'�K�K�� �>�
�r4r#c�2aa�]tRtRtoV3RltRtVtV;t#)�ExFileObjecti�c�<�\VPVPVPVPVP
4p\SV`V4R#r�)r#r��offset_datar!r��sparse�superr�)r��tarfile�tarinfor��	__class__s&&& �r2r��ExFileObject.__init__�s;����g�o�o�w�/B�/B����g�l�l�G�N�N�<��
����!r4ru�rwrxryrzr�r|r��
__classcell__�r[r�s@@r2rTrT�s����"�"r4rTc��]tRtRtRtR#)ri�ruN)rwrxryrzr|rur4r2rr�s��r4c�2aa�]tRtRtoV3RltRtVtV;t#)ri�c�P<�Wn\SV`	RVP:R24R#)zmember z has an absolute pathN�rZrXr�r��r�rZr[s&&�r2r��AbsolutePathError.__init__�s$�����
���7�7�<�<�"2�2G�H�Ir4�rZr]r_s@@r2rr�s����J�Jr4c�2aa�]tRtRtoV3RltRtVtV;t#)r
i�c�p<�WnW n\SV`
VP:RV:R2R,4R#)z would be extracted to �, � which is outside the destinationN�rZ�_pathrXr�r��r�rZr�r[s&&&�r2r�� OutsideDestinationError.__init__�s7������
�
���G�L�L�+�+B�4�(�"�M�=�>�	?r4�rlrZr]r_s@@r2r
r
������?�?r4c�2aa�]tRtRtoV3RltRtVtV;t#)ri�c�N<�Wn\SV`	VP:R24R#)z is a special fileNrcrds&&�r2r��SpecialFileError.__init__�s"�����
���G�L�L�+�+=�>�?r4rfr]r_s@@r2rr�s����@�@r4c�2aa�]tRtRtoV3RltRtVtV;t#)ri�c�N<�Wn\SV`	VP:R24R#)z is a link to an absolute pathNrcrds&&�r2r��AbsoluteLinkError.__init__�s"�����
���G�L�L�+�+I�J�Kr4rfr]r_s@@r2rr�s����L�Lr4c�2aa�]tRtRtoV3RltRtVtV;t#)ri�c�p<�WnW n\SV`
VP:RV:R2R,4R#)z would link to rirjNrkrms&&&�r2r��$LinkOutsideDestinationError.__init__�s6������
�
���G�L�L�+�?�4�(�"�E�=�>�	?r4ror]r_s@@r2rr�rpr4c�2aa�]tRtRtoV3RltRtVtV;t#)ric�t<�WnW n\SV`
RVP:R2RV:R2,4R#)zlink z would be extracted as a zcopy of z, which was rejectedNrkrms&&&�r2r��LinkFallbackError.__init__s?������
�
���5���� 0�0I�J�%�d�X�-A�B�C�	Dr4ror]r_s@@r2rrs����D�Dr4c��/pVPp\PPV\PPR7pVPR\P34'd5VPPR\P,4;qCR&\PPV4'd\V4h\PP\PPW4\PPR7p\PPWQ.4V8wd\W4hVPpVe�VR,pV'd�VP4'gVP4'd#V^@,'g
VR,pVR,pM:VP!4'gVP#4'dRpM\%V4hW`P8wdWcR&V'Ed�VP&eRVR&VP(eRVR&VP*eRVR	&VP,eRVR
&VP4'gVP#4'Edj\PPVP.4'd\1V4h\PP3VP.4pWpP.8wdWsR&VP#4'dJ\PPV\PP5V4VP.4pM*\PPVVP.4p\PPV\PPR7p\PPWQ.4V8wd\7W4hV#)
)r>�/r�Ni��r�r#r$�uname�gname�linknamei����)r�r�r��realpath�
ALLOW_MISSINGr�sep�lstrip�isabsrr�
commonpathr
r��isreg�islnk�isdir�issymrr#r$r�r�r�r�normpath�dirnamer)�member�	dest_path�for_data�	new_attrsr��target_pathr��
normalizeds&&&     r2�_get_filtered_attrsr�
s����I��;�;�D���� � ��2�7�7�3H�3H� �I�I�����R�V�V�}�%�%�#)�;�;�#5�#5�c�B�F�F�l�#C�C��� �	�w�w�}�}�T��� ��'�'��'�'�"�"�2�7�7�<�<�	�#@�*,�'�'�*?�*?�#�A�K�	�w�w���;�2�3�y�@�%�f�:�:��;�;�D����e�|����|�|�~�~�������e�|�|��F�N�D���
�������6�<�<�>�>���'�v�.�.��;�;�� $�f���x��:�:�!�#�I�e���:�:�!�#�I�e���<�<�#�!%�I�g���<�<�#�!%�I�g���<�<�>�>�V�\�\�^�^��w�w�}�}�V�_�_�-�-�'��/�/����)�)�&�/�/�:�J��_�_�,�(2�*�%��|�|�~�~� �g�g�l�l�9�+-�7�7�?�?�4�+@�+1�?�?�<��!�g�g�l�l�9�+1�?�?�<���'�'�*�*�;�24�'�'�2G�2G�+�I�K��w�w�!�!�;�":�;�y�H�1�&�F�F��r4c��V#r�ru)r�r�s&&r2�fully_trusted_filterr�Qs���Mr4c�Z�\WR4pV'dVP!R/VBRR/B#V#)F�deepru�r�r��r�r�r�s&& r2�
tar_filterr�Ts-��#�F�u�=�I���~�~�6�	�6��6�6��Mr4c�Z�\WR4pV'dVP!R/VBRR/B#V#)Tr�Frur�r�s&& r2�data_filterr�Zs-��#�F�t�<�I���~�~�6�	�6��6�6��Mr4�
fully_trustedr�rIs([0-9]{1,20}) c�a�]tRtRtoRt]!RY/RRbRRbRRbR	R
bRRbR
RbRRbRRbRRbRRbRRbRRbRRbRRbRR bR!R"bR#R$bR%R&bR'R&bR(R&btRZR)lt]R*4t	]	PR+4t	]R,4t]PR-4t]R.4t]PR/4tR0t
R]R
]R]R]R]R	]R]R]R1R2R3]/
R4ltR5t]]R63R7ltR8tR9tR:t]R;4tR<t]R=4t]R>4t]R?4t]R@4t]RA4t]RB4t RCt!RDt"REt#RFt$RGt%RHt&RIt'RJt(RKt)RLt*RMt+RNt,ROt-RPt.RQt/RRt0RSt1RTt2RUt3RVt4RWt5RXt6Vt7R&#)[ripz�Informational 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.
r�zName of the archive member.r�zPermission bits.r#z6User ID of the user who originally stored this member.r$z7Group ID of the user who originally stored this member.r!zSize in bytes.r"zTime of last modification.�chksumzHeader checksum.�typez�File type. type is usually one of these constants: REGTYPE, AREGTYPE, LNKTYPE, SYMTYPE, DIRTYPE, FIFOTYPE, CONTTYPE, CHRTYPE, BLKTYPE, GNUTYPE_SPARSE.r�zcName of the target file name, which is only present in TarInfo objects of type LNKTYPE and SYMTYPE.r�z
User name.r�zGroup name.�devmajorzDevice major number.�devminorzDevice minor number.r%zThe tar header starts here.rVzThe file's data starts here.�pax_headerszMA dictionary containing key-value pairs of an associated pax extended header.rWzSparse member information.�_tarfileN�_sparse_structs�_link_targetc��WnRVn^Vn^Vn^Vn^Vn^Vn\VnRVn	RVn
RVn^Vn^Vn
^Vn^VnRVn/VnR#)zEConstruct a TarInfo object. name is the optional name
of the member.
i�r�N)r�r�r#r$r!r"r��REGTYPEr�r�r�r�r�r�r%rVrWr��r�r�s&&r2r��TarInfo.__init__�s{���	���	���������	���
������	���
���
���
���
���
������������r4c�R�^RIpVPR\^R7VP#�rN)�
stacklevelzhThe undocumented "tarfile" attribute of TarInfo objects is deprecated and will be removed in Python 3.16��warnings�warn�DeprecationWarningr�)r�r�s& r2rY�TarInfo.tarfile�s-����
�
�
A��1�	�	.��}�}�r4c�J�^RIpVPR\^R7WnR#r�r�)r�rYr�s&& r2rYr��s(����
�
�
A��1�	�	.� �
r4c��VP#)z(In pax headers, "name" is called "path".�r�r�s&r2r��TarInfo.path�s���y�y�r4c��WnR#r�r�r�s&&r2r�r��s���	r4c��VP#)z0In pax headers, "linkname" is called "linkpath".�r�r�s&r2�linkpath�TarInfo.linkpath�r>r4c��WnR#r�r�)r�r�s&&r2r�r��s�� �
r4c�h�RVPPVP\V43,#)z<%s %r at %#x>)r[rwr��idr�s&r2�__repr__�TarInfo.__repr__�s&���4�>�>�#:�#:�4�9�9�R��X�"N�N�Nr4r�T�_KEEPc
� �V	'd\P!V4pM\P!V4pWJdWnW*JdW+nW:JdW;nWJJdWKnWZJdW[nWjJdWknWzJdW{nW�JdW�n	V#)zGReturn a deep copy of self with the given attributes replaced.
        )
�copy�deepcopyr�r"r�r�r#r$r�r�)r�r�r"r�r�r#r$r�r�r�r��results&$$$$$$$$$$ r2r��TarInfo.replace�s����]�]�4�(�F��Y�Y�t�_�F����K��� �L����K�� �&�O����J����J��� �L��� �L��
r4c��VPfRpMVPR,pRVPRVRVPRVPRVPRVP
R	VPR
VPRVPRVPR
VPRVPRVP/
pVR
,\8Xd4VR,PR4'gVR;;,R,
uu&V#)z9Return the TarInfo's attributes as a dictionary.
        N�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�r��infos&  r2�get_info�TarInfo.get_info�s����9�9���D��9�9�v�%�D���	�	�������������	�	���
�
�������	�	���
�
���
�
���
�
���
�
���
�
�
�� ��<�7�"�4��<�+@�+@��+E�+E���L�C��L��r4�surrogateescapec�B�VP4pVP4FwrVVeK\RV,4h	V\8XdVP	WBV4#V\
8XdVP
WBV4#V\8XdVPWB4#\R4h)z<Return a tar header as a string of 512 byte blocks.
        z%s may not be Nonezinvalid format)	r��itemsr*�USTAR_FORMAT�create_ustar_headerrL�create_gnu_header�
PAX_FORMAT�create_pax_header)r�rPr0r1r�r��values&&&&   r2�tobuf�
TarInfo.tobuf
s����}�}����:�:�<�K�D��}� �!5��!<�=�=�(��\�!��+�+�D�F�C�C�
�z�
!��)�)�$�&�A�A�
�z�
!��)�)�$�9�9��-�.�.r4c�D�\VR&\VR,PW#44\8�d\	R4h\VR,PW#44\
8�d#VP
VR,W#4wVR&VR&VPV\W#4#)z3Return the object as a ustar header block.
        �magicr�zlinkname is too longr��prefix)	�POSIX_MAGICr,r+�LENGTH_LINKr*�LENGTH_NAME�_posix_split_name�_create_headerr�)r�r�r0r1s&&&&r2r��TarInfo.create_ustar_headers���$��W�
��t�J��&�&�x�8�9�K�G��3�4�4��t�F�|�"�"�8�4�5��C�+/�+A�+A�$�v�,�PX�+a�(�D��N�D��L��"�"�4��x�H�Hr4c��\VR&Rp\VR,PW#44\8�d%W@P	VR,\
W#4,
p\VR,PW#44\8�d%W@P	VR,\W#4,
pW@PV\W#4,#)z:Return the object as a GNU header block sequence.
        r�r4r�r�)
�	GNU_MAGICr,r+r��_create_gnu_long_header�GNUTYPE_LONGLINKr��GNUTYPE_LONGNAMEr�rL)r�r�r0r1rYs&&&& r2r��TarInfo.create_gnu_header(s���"��W�
����t�J��&�&�x�8�9�K�G��/�/��Z�0@�BR�T\�e�e�C��t�F�|�"�"�8�4�5��C��/�/��V��>N�PX�a�a�C��(�(��z�8�L�L�Lr4c���\VR&VPP4pRR\3RR\3RR
3FIwrEpWS9dKW,PRR4\Y,4T8�gK?Y,Y5&KK	RF�wrGRpW,p	\V	\4p
V
'd\V	4MT	p^Tu;8:d^V^,
,8g
M^W&R	pMV
'dW�V&R	pV'gKrWC9gKz\V	4W4&K�	V'dVPV\V4pMR
pW�PV\RR4,# \dY,Y5&EK3i;i)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.
r�r�r�r�r�r=r>FTr4r�)r�r�� )r�r�r�))r#�)r$r�)r!�)r"r�)r�r�r�r�r�r+�UnicodeEncodeErrorr,�
isinstance�float�round�str�_create_pax_generic_header�XHDTYPEr�r�)
r�r�r0r�r��hnamer/rO�	needs_pax�val�val_is_float�val_intrYs
&&&          r2r��TarInfo.create_pax_header6sb��
$��W�
��&�&�+�+�-��
���-�
�J��/T�&�(>�$@��D���#��
��
�!�!�'�8�4�
�4�:���'�%)�Z��"�!$@�(R�L�D��I��*�C�%�c�5�1�L�$0�e�C�j�c�G���3�!���
�"3�3���
� �	��%�T�
� �	��y�T�4�$'��H��!�%R�*��1�1�+�w��Q�C��C��(�(��|�W�i�P�P�P��G&�
�%)�Z��"��
�s�E�E,�+E,c�0�VPV\R4#)zAReturn the object as a pax global header block sequence.
        r()r��XGLTYPE)�clsr�s&&r2�create_pax_global_header� TarInfo.create_pax_global_headerps���-�-�k�7�G�L�Lr4c�X�VPR4p\^\V44FvpRPVRV4pRPWER4p\VP	W#44\
8:gKO\VP	W#44\8:gKtWa3#	\R4h)zBSplit a name longer than 100 chars into a prefix
and a name part.
r~Nzname is too long)�splitrCr,rr+�
LENGTH_PREFIXr�r*)r�r�r0r1�
componentsrHr�s&&&&   r2r��TarInfo._posix_split_namevs����Z�Z��_�
��q�#�j�/�*�A��X�X�j��!�n�-�F��8�8�J�r�N�+�D��6�=�=��2�3�}�D�����H�5�6�+�E���|��+��/�0�0r4c��VPR4\\39pV'd<\VPR^4^V4p\VPR^4^V4pM\	R^W#4p\	R^W#4pVPR\
4pVf\
R4h\	VPRR4^dW#4\VPR^4R	,^V4\VPR
^4^V4\VPR^4^V4\VPR^4^V4\VPR
^4^V4RV\	VPRR4^dW#4VPR\4\	VPRR4^ W#4\	VPRR4^ W#4VV\	VPRR4^�W#4.p\P!R\,RPV44p	\V	\)R4^,p
V	RR\RV
,R4,V	RR,p	V	#)zqReturn a header block. info is a dictionary with file
information, format must be one of the *_FORMAT constants.
r�r�r�r�NzTarInfo.type must not be Noner�r�r�r#r$r!r"s        r�r�r�r�r�z%dsr4z%06or=i����i����)�get�CHRTYPE�BLKTYPErRr3r�r*r�rWr�rrr\rK)r�rPr0r1�has_device_fieldsr�r��filetype�partsrYr�s&&&&       r2r��TarInfo._create_header�s��
!�H�H�V�,��'�0B�B����4�8�8�J��2�A�v�>�H��4�8�8�J��2�A�v�>�H��2�q�(�3�H��2�q�(�3�H��8�8�F�G�,�����<�=�=�
������$�c�8�<�������#�f�,�a��8�������"�A�v�.�������"�A�v�.�������#�R��0������!�$�b�&�1��������R�(�#�x�@��H�H�W�k�*������"�%�r�8�<������"�%�r�8�<��������2�&��X�>�
��$�k�k�%�)�+�S�X�X�e�_�=���c�9�*�+�.�/��2���%�4�j�5��F�!2�G�<�<�s�4�5�z�I���
r4c��\\V4\4wrV^8�d V\V,
\,,
pV#)zQReturn the string payload filled with zero bytes
up to the next 512 byte border.
)rar,rr-)�payloadrhris&  r2�_create_payload�TarInfo._create_payload�s7��
#�3�w�<��;����q�=��	�I�-��4�4�G��r4c���VPW44\,p/pRVR&W%R&\V4VR&\VR&VP	V\
W44VP
V4,#)zAReturn a GNUTYPE_LONGNAME or GNUTYPE_LONGLINK sequence
for name.
z
././@LongLinkr�r�r!r�)r+r-r,r�r�r�r)r�r�r�r0r1r�s&&&&& r2r��TarInfo._create_gnu_long_header�sn��
�{�{�8�,�s�2����&��V���V���4�y��V��!��W�
��!�!�$��h�G��#�#�D�)�*�	*r4c��RpVP4FwrVVPRR4K	RpV'd
VR,
pVP4F�wrVVPR4pV'dVPVR4pMVPR4p\V4\V4,^,p^;r�V\\	V
44,p	W�8XdMT	p
K'V\\	V
4R4R	,V,R
,V,R,,
pK�	/pRVR
&W+R&\V4VR&\VR&VPV\RR4VPV4,# \d	RpEKVi;i)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(r>Tr4s21 hdrcharset=BINARY
r�r=� �=�
z././@PaxHeaderr�r�r!r�r�)
r�r+r�r,r�rKr�r�r�r)r�r�r�r0�binary�keywordr��records�lrGr9r�s&&&&        r2r��"TarInfo._create_pax_generic_header�sp����)�/�/�1�N�G�
����W�h�/�2�����0�0�G�)�/�/�1�N�G��n�n�W�-�G�����X�/@�A�����W�-���G��s�5�z�)�A�-�A��I�A����C��F��O���6�����u�S��V�W�-��4�w�>��E��M�PU�U�U�G�!2�(��'��V���V���7�|��V��#��W�
��!�!�$��g�y�I��#�#�G�,�-�	-��I&�
����
�s�E3�3
F�Fc�V�\V4^8Xd\R4h\V4\8wd\R4hVP	\
4\8Xd\
R4h\VR,4pV\V49d\R4hV!4p\VR,W#4Vn\VR,4Vn\VR,4Vn
\VR	,4Vn\VR
,4Vn\VR,4VnWEnVR,Vn\VR
,W#4Vn\VR,W#4Vn\VR,W#4Vn\VR,4Vn\VR,4Vn\VR,W#4pVP$\08Xd-VPP3R4'd\4VnVP$\68Xd�Rp.p\9^4FNp	\WV^,4p
\W^,V^,4pTP=Y�34T^,
pKP	\?VR,4p\VR,4p
W�V
3Vn VPC4'd!VPPER4VnV'd5VP$\F9d VR,VP,VnV# \:dK�i;i)zAConstruct a TarInfo object from a 512 byte bytes object.
        zempty headerztruncated headerzend of file header:��Nzbad checksum:r�dN:r�lN:r�tN:r �|N:r!�N:r"rN:r�N:r#iN:i	i)N:i)iIN:iIiQN:iQiYN:iYi�Nr~i�i�:i�i�N)$r,r�rr��countr-r�rIr\rFr:r�r�r#r$r!r"r�r�r�r�r�r�r��AREGTYPEr�r��GNUTYPE_SPARSErCr*r
�boolr�r��rstrip�	GNU_TYPES)r�rYr0r1r��objr�r��structsrHr%�numbytes�
isextended�origsizes&&&&          r2�frombuf�TarInfo.frombuf�ss���s�8�q�=�"�>�2�2��s�8�y� �&�'9�:�:��9�9�S�>�Y�&� �!5�6�6��S��\�"����c�*�*�$�^�4�4��e���s�5�z�8�4����s�7�|�$����c�'�l�#����c�'�l�#����s�7�|�$�����G��%��	��
��w�<����3�w�<��:�����G��h�7��	���G��h�7��	��3�w�<�(����3�w�<�(����S��\�8�4���8�8�x��C�H�H�$5�$5�c�$:�$:��C�H�
�8�8�~�%��C��G��1�X��� ���r��!2�3�F�"�3�R�x��b��#9�:�H�����1�2��r�	����c�#�h��J��3�w�<�(�H�#*��"A�C���9�9�;�;��x�x���s�+�C�H��c�h�h�i�/���|�c�h�h�.�C�H��
��"����s�)/L�L(�'L(c��VPP\4pVPW!PVP
4pVPP
4\,
VnVPV4#)z<Return the next TarInfo object from TarFile object
tarfile.
)	r�rbrr/r0r1rr%�_proc_member)r�rYrYr*s&&  r2�fromtarfile�TarInfo.fromtarfile=s\��
�o�o�"�"�9�-���k�k�#�/�/����@���_�_�)�)�+�i�7��
�����(�(r4c�*�VP\\39dVPV4#VP\8XdVPV4#VP\\\39dVPV4#VPV4#)zFChoose the right processing method depending on
the type and call it.
)r�r�r��
_proc_gnulongr&�_proc_sparser�r��SOLARIS_XHDTYPE�	_proc_pax�
_proc_builtin)r�rYs&&r2r2�TarInfo._proc_memberRsx���9�9�)�+;�<�<��%�%�g�.�.�
�Y�Y�.�
(��$�$�W�-�-�
�Y�Y�7�G�_�=�
=��>�>�'�*�*��%�%�g�.�.r4c���VPP4VnVPpVP4'gVP\
9d"W P
VP4,
pW!nVPVPVPVP4VP4'd!VPPR4VnV#)zSProcess a builtin type or an unknown type which
will be treated as a regular file.
r~)r�rrVr�r��SUPPORTED_TYPES�_blockr!r%�_apply_pax_infor�r0r1r�r�r()r�rYr%s&& r2r:�TarInfo._proc_builtin_s���#�?�?�/�/�1����!�!���:�:�<�<�4�9�9�O�;��k�k�$�)�)�,�,�F���	
���W�0�0�'�2B�2B�G�N�N�S��:�:�<�<��	�	�(�(��-�D�I��r4c�Z�VPPVPVP44pVP	V4pTPTnTP\8Xd'\Y!PTP4TnM:TP\8Xd&\Y!PTP4TnTP#4'd!TPP%R4TnT# \
dp\
\T44RhRp?ii;i)z@Process the blocks that hold a GNU longname
or longlink member.
Nr~)r�rbr>r!r3r
r�r�r%r�r�r:r0r1r�r�r�r��removesuffix)r�rYrY�nextrs&&   r2r6�TarInfo._proc_gnulongus����o�o�"�"�4�;�;�t�y�y�#9�:��	:��#�#�G�,�D��k�k����9�9�(�(��C�!1�!1�7�>�>�B�D�I�
�Y�Y�*�
*���%5�%5�w�~�~�F�D�M��:�:�<�<��	�	�.�.�s�3�D�I����!�	:�'��A��/�T�9��	:�s�D�D*�D%�%D*c�Z�VPwr#pV=V'd�VPP\4p^p\	^4F^p\WVV^,4p\WV^,V^,4p	T'dT	'dTPY�34T^,
pK`	\VR,4pK�W n	VPP4VnVPVPVP4,VnW@n
V# \dK�i;i)z8Process a GNU sparse header plus extra headers.
        i�)r�r�rbrrCrIr*r
r'rWrrVr>r!r%)
r�rYr+r-r.rYr�rHr%r,s
&&        r2r7�TarInfo._proc_sparse�s���)-�(<�(<�%��X�� ���/�/�&�&�y�1�C��C��2�Y��� ���r��!2�3�F�"�3�R�x��b��#9�:�H��h��N�N�F�#5�6��r�	����c�#�h��J���"�?�?�/�/�1����)�)�D�K�K��	�	�,B�B����	����"����s�
/D�D*�)D*c��VPPVPVP44pVP\
8XdVPpMVPP4p^pRp.p\V4V8�Ed8W$,^8wEd*\PW$4;p'g\R4h\VP^44pT^8d\R4hYH,\T48�d\R4hTP^4T,^,
p	Y'P!^4^,T	p
T
P#R4wr�p
T'dTR8wgY),^
8wd\R4hTP%Y�T
34TR8XdTfT
R8XdTP&pMRpYH,
pEKHVfRpVFywr�p
VP)VRRVP*4pV\,9d)VP)W�VP&VP*4pMVP)V
RRVP*4pW�V&K{	VP/V4pRT9dTP7TT4MXRT9dTP9TT4M>TP;R	4R
8Xd)TP;R4R8XdTP=TY14TP\>\@39d�TPCY1P&TP*4TPDTn"R
T9daTPFpTPI4'gTP\J9d#TTPTP4,
pTTn"T# \d
\R4hi;i \0dp\3\5T44RhRp?ii;i)zCProcess an extended or global header as described in
POSIX.1-2008.
Nr@rs
hdrcharsetsBINARYr(�GNU.sparse.map�GNU.sparse.sizezGNU.sparse.major�1zGNU.sparse.minorr?r!)&r�rbr>r!r�r�r�r�r,�_header_length_prefix_re�matchrFrD�groupr*rJrn�	partitionr
r0�_decode_pax_fieldr1�PAX_NAME_FIELDSr3r
r�r��_proc_gnusparse_01�_proc_gnusparse_00r�_proc_gnusparse_10r�r8r?r%rVr�r=)r�rYrYr�r�r0�raw_headersrLr/�header_value_end_offset�keyword_and_value�raw_keyword�equals�	raw_valuerr�rCrr%s&&                 r2r9�TarInfo._proc_pax�sW��
�o�o�"�"�4�;�;�t�y�y�#9�:��
�9�9���!�-�-�K�!�-�-�2�2�4�K��������#�h��n���T�!1�5�;�;�C�E�E�E�E�(�)9�:�:�
;��U�[�[��^�,��
��z�(�)9�:�:��|�c�#�h�&�(�)9�:�:�&+�k�k�!�n�v�&=��&A�#� #�I�I�a�L�1�$4�5L� M��->�-H�-H��-N�*�K���&�D�.�C�4P�TX�4X�(�)9�:�:�����Y�?�@��m�+��0@��	�)�&�/�/�H�&�H��M�C����H�/:�*�F���,�,�[�'�7��N�N�$�G��/�)��.�.�y�G�DT�DT����(���.�.�y�'�7����(��$)�� �#/:�(	:��#�#�G�,�D�
�{�*��#�#�D�+�6�
�+�
-��#�#�D�+�6�
�_�_�/�
0�C�
7�K�O�O�L^�<_�cf�<f��#�#�D�+�?��9�9��/�2�2�� � ��.>�.>����O��+�+�D�K���$��)�)���:�:�<�<�4�9�9�O�#C��d�k�k�$�)�)�4�4�F�!'������y�
;�(�)9�:�:�
;��|�	:�'��A��/�T�9��	:�s$�?N�N�N�O�(N=�=Oc��.p.pVFjwrVpVR8Xd,VP\VP444K8VR8XgKAVP\VP444Kl	\\
W444VnR# \d
\	R4hi;i \d
\	R4hi;i)z?Process a GNU tar extended sparse header, version 0.0.
        sGNU.sparse.offsetr@sGNU.sparse.numbytesN)r
rDr8r*rF�list�ziprW)r�rCrT�offsetsr,�_rr�s&&&     r2rR�TarInfo._proc_gnusparse_00%s�������!,��A���.�.�?��N�N�3�u�|�|�~�#6�7��2�2�?��O�O�C�����$7�8�"-��3�w�1�2����"�?�,�-=�>�>�?��"�?�,�-=�>�>�?�s�(B�	(B*�B'�*Cc��VR,PR4Uu.uFp\V4NK	pp\\VR,VR,44VnR#uupi)z?Process a GNU tar extended sparse header, version 0.1.
        rH�,�NN���NrdN)rrDr\r]rW)r�rCr��xrWs&&&  r2rQ�TarInfo._proc_gnusparse_019sP��#.�.>�"?�"E�"E�c�"J�K�"J�Q�#�a�&�"J��K��3�v�c�{�F�4�L�9�:����Ls�Ac��Rp.pVPP\4pVPR^4wrF\	V4p\V4V^,8d]RV9d&WcPP\4,
pVPR^4wrvVP
\	V44KsVPP4Vn\\VR,VR,44VnR#)z?Process a GNU tar extended sparse header, version 1.0.
        Nrrcre)r�rbrrrDr,r
rrVr\r]rW)r�rCr�rY�fieldsrWrY�numbers&&&&    r2rS�TarInfo._proc_gnusparse_10?s��������o�o�"�"�9�-���i�i��q�)����V����&�k�F�Q�J�&��C�����+�+�I�6�6���)�)�E�1�-�K�F��M�M�#�f�+�&�"�?�?�/�/�1����3�v�c�{�F�4�L�9�:��r4c���VP4F�wrEVR8Xd\VRV4KVR8Xd\VR\V44K:VR8Xd\VR\V44KYV\9gKfV\9d\V,!V4pVR8XdVP
R4p\WV4K�	VP4VnR# \
d^pLNi;i)z\Replace fields with supplemental information from a previous
pax extended or global header.
zGNU.sparse.namer�rIr!zGNU.sparse.realsizer~N)	r��setattrrD�
PAX_FIELDS�PAX_NUMBER_FIELDSr*r(r�r�)r�r�r0r1rr�s&&&&  r2r?�TarInfo._apply_pax_infoOs���*�/�/�1�N�G��+�+���f�e�,��-�-���f�c�%�j�1��1�1���f�c�%�j�1��J�&��/�/�"� 1�'� :�5� A���f�$�!�L�L��-�E���u�-�2�"'�+�+�-����
&�"� !��"�s�C�
C%�$C%c�l�VPVR4# \dTPY44u#i;i)z1Decode a single field from a pax record.
        r>)r8�UnicodeDecodeError)r�r�r0�fallback_encoding�fallback_errorss&&&&&r2rO�TarInfo._decode_pax_fieldfs:��	D��<�<��(�3�3��!�	D��<�<� 1�C�C�	D�s��3�3c��V^8d\R4h\V\4wr#V'd
V^,
pV\,#)zLRound up a byte count by BLOCKSIZE and return it,
e.g. _block(834) => 1024.
zinvalid offset)rFrar)r�r$rhris&&  r2r>�TarInfo._blockns=��
�1�9�$�%5�6�6�"�5�)�4�����a�K�F��	�!�!r4c�(�VP\9#�z4Return True if the Tarinfo object is a regular file.)r��
REGULAR_TYPESr�s&r2r��
TarInfo.isregzs���y�y�M�)�)r4c�"�VP4#rz)r�r�s&r2�isfile�TarInfo.isfile~s���z�z�|�r4c�(�VP\8H#)z!Return True if it is a directory.)r�r�r�s&r2r��
TarInfo.isdir�����y�y�G�#�#r4c�(�VP\8H#)z%Return True if it is a symbolic link.)r��SYMTYPEr�s&r2r��
TarInfo.issym�r�r4c�(�VP\8H#)z!Return True if it is a hard link.)r��LNKTYPEr�s&r2r��
TarInfo.islnk�r�r4c�(�VP\8H#)z(Return True if it is a character device.)r�rr�s&r2�ischr�
TarInfo.ischr�r�r4c�(�VP\8H#)z$Return True if it is a block device.)r�rr�s&r2�isblk�
TarInfo.isblk�r�r4c�(�VP\8H#)zReturn True if it is a FIFO.)r��FIFOTYPEr�s&r2�isfifo�TarInfo.isfifo�s���y�y�H�$�$r4c��VPRJ#r�)rWr�s&r2�issparse�TarInfo.issparse�s���{�{�$�&�&r4c�>�VP\\\39#)zCReturn True if it is one of character device, block device or FIFO.)r�rrr�r�s&r2�isdev�
TarInfo.isdev�s���y�y�W�g�x�8�8�8r4)r�r�r�r�r$r�r�r�r"r�r%rVr�r!rWr�r#r�ru)r�)8rwrxryrzr{�dict�	__slots__r�rRrY�setterr�r�r�r�r�r��DEFAULT_FORMAT�ENCODINGr�r�r�r��classmethodr�r��staticmethodr�rr�r�r/r3r2r:r6r7r9rRrQrSr?rOr>r�r~r�r�r�r�r�r�r�r�r|r�r�s@r2rrps�������
�,�
�!�
�G�
�H�	
�
 �
�-�

�$�
�>�
�F�
��
��
�*�
� *�!
�"/�#
�$5�%
�&9�'
�*.�+
�,�-
�.�/
�0�1
�I�6�0����
�^�^� �� �����
�[�[���������_�_�!��!�O����"'��.3��>C����$��,1��9>����"'��8�8*�H�EV�/�"I�M�8Q�t�M��M�
� �'��'�R�����*��*� �0-��0-�d�<��<�|�)��)�(/��,�6�8w�r3�(;�;� .�.D�
"�*��$�$�$�$�$�%�'�9�9r4c
�(a�]tRtRtoRt^tRtRt^t]	t
]tRt
]t]tRtRBRlt]RRR]3Rl4t]RCRl4t]RDR	l4t]RDR
l4t]RERl4t]RFRl4tR
RRRRRRRRR/tRtRtRtRt RGRlt!RHRR/Rllt"RIRR/Rllt#RJR lt$R!t%RKR"RRR/R#llt&R$t'RLR"RRR/R%llt(R&t)RJR'lt*R(t+R)t,R*t-RMR+RR,R/R-llt.R.t/R/t0R0t1R1t2R2t3R3t4R4t5R5t6R6t7R7t8R8t9RNR9lt:R:t;RJR;lt<R<t=R=t>R>t?R?t@R@tARAtBVtCR#)Ori�z=The TarFile Class provides an interface to tar archives.
    FNr�c��RRRRRRRR/pW/9d\R	4hW nW�,VnV'gbVPR8Xd4\PPV4'gRVnRVn\
WP4pR
VnMrVfE\VR4'd3\VP\\34'd
VPp\VR
4'dVPVnRVnV'd \PPV4MRVn
W0nW�nVeW@nVeWPnVeW`nVeWpnVeW�nW�nV
eVP \,8XdW�nM/VnVeW�nVeW�nW�nR
Vn.VnR
VnVPP=4Vn/Vn /Vn!/Vn"VPR8XdRVn#VPI4Vn#VPR8Xd`VPPKVP>4VP"PMV4pVP8POV4K_VPR9d�RVnVP.'dsVP"PWVP.PY44pVPP[V4V;P>\]V4,
unR#R#R# \Pd*TPPKTP>4K�\Rdp\U\T44RhRp?ii;i TP'gTPP_4RTnh;i)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.
r�r0�azr+br��wbrg�xb�!mode must be 'r', 'a', 'w' or 'x'FNr�r�T�r�r�rg)0r*r��_moder�r��exists�	bltn_openr�r�r�r�r�rK�abspathr��streamrPrZ�dereference�ignore_zerosr0r1r�r��debug�
errorlevel�copybufsizer��members�_loadedrr%�inodes�_unames�_gnames�firstmemberrCrr3r
r�r
rr�r�rcr,r�)r�r�r�r�rPrZr�r�r0r1r�r�r�r�r��modesrrYs&&&&&&&&&&&&&&&   r2r��TarFile.__init__�s���d�C���T�3��=�����@�A�A��	��[��
���y�y�C�������t�(<�(<���	�!��
���j�j�1�G�$�D������&�!9�!9��7�<�<�#�u��6�6��|�|���w��'�'�$�\�\��
�#�D��-1�B�G�G�O�O�D�)�t��	������� �K���"�L��"�*���#� ,����$�M����"�t�{�{�j�'@�*��!�D�����J��!�(�O�'������������l�l�'�'�)������������	��y�y�C��#'�� �#'�9�9�;�� ��y�y�C����L�L�%�%�d�k�k�2�:�"&�,�,�":�":�4�"@�����+�+�G�4��y�y�O�+�#����#�#�#��,�,�?�?��@P�@P�@U�@U�@W�X�C��L�L�&�&�s�+��K�K�3�s�8�+�K�$�,��
*�����)�)�$�+�+�6��&�:�'��A��/�T�9��:��	��#�#�#����"�"�$��D�K��sJ�A$N�,6M�"+N�A0N�0N�4N�7N�N�N�N�N�6Oc	��a�V'gV'g\R4hVR9d�V3Rlp.p\SPVR7F@p\SSPV,4p	VeVP	4p
V	!VRV3/VBu#	RPV4p\R	V24hR
V9dxVPR
^4wr�T
;'gRp
T;'gRpVSP9d\SSPV,4p	M\
RV,4hV	!WV3/VB#R
V9d�VPR
^4wr�T
;'gRp
T;'gRpV
R9d\R4hRV9dVR9d\R4hRV9dVR9d\R4hVPR^	4pVPRR4p\WW�VW�4pS!WV3/VBpRTnT#VR9dSP!WV3/VB#\R4h \
\3d:pTPRTRT:24TeTPX
4Rp?EK	Rp?ii;i TP4h;i)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
'r:zst'      open for reading with zstd 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
'w:zst'      open for writing with zstd 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
'x:zst'      create a zstd 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
'r|zst'      open a zstd 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
'w|zst'      open a zstd compressed stream for writing
znothing to openr�c�0<�SPV,R8H#)�taropen)�	OPEN_METH)r�r�s&�r2�not_compressed�$TarFile.open.<locals>.not_compressedas����}�}�X�.�)�;�;r4)�keyNz	- method z: �
z'file could not be opened successfully:
�:r�r��|zmode must be 'r' or 'w'r�z4compresslevel is only valid for w|gz and w|bz2 modesr�z"preset is only valid for w|xz modeFzundiscernible mode)r��r:*)r�r�)r�r�)r�r�)r*�sortedr�rorrrr
rrr�popr�r�r�r�)r�r�r�r�rg�kwargsr��
error_msgsr��func�	saved_posr�error_msgs_summary�filemoder�r�r�r
sf&&&&,            r2r�TarFile.open1s{���V�G��.�/�/��<��
<��J�"�3�=�=�n�E���s�C�M�M�(�$;�<���&� '����I����c�7�=�f�=�=�F�"&���:�!6���F�GY�FZ�[�\�\�
�D�[�!%���C��!3��H����3�H��(�(�5�H��3�=�=�(��s�C�M�M�(�$;�<��&�'D�x�'O�P�P����:�6�:�:�
�D�[�!%���C��!3��H����3�H��(�(�5�H��z�)� �!:�;�;��&�(�X�]�-J� �J����6�!�h�g�&=� �!E�F�F�"�J�J���:�M��Z�Z��$�/�F��T�X��*�4�F�
����9�&�9��"�A�M��H�
�_�
$��;�;�t�7�=�f�=�=��-�.�.��e"�#3�4���%�%�	�(��2�a�U�&C�D��*����Y�/���	��R
������s$�8
H�
I�I�-I�I�I'c�:�VR9d\R4hV!WV3/VB#)zCOpen uncompressed tar archive name for reading or writing.
        r�)r�r�r�rg)r*)r�r�r�r�r�s&&&&,r2r��TarFile.taropen�s+���+�+��@�A�A��4�w�1�&�1�1r4c��VR	9d\R4h^RIHpT!YR,YC4pTP!YT3/TBpRTn	T# \d\	R4Rhi;i \
dpTeTR8Xd
\
R4ThhRp?ii;i \
d*pTP4TR8Xd
\
R4ThhRp?iTP4h;i)
zXOpen gzip compressed tar archive name for reading or writing.
Appending is not allowed.
r��mode must be 'r', 'w' or 'x')�GzipFilezgzip module is not availableNrjr�F�r�r�rg)
r*�gzipr�r�rr�rr�r�r�)	r�r�r�r�r�r�r�rr
s	&&&&&,   r2�gzopen�TarFile.gzopen�s���
��&��;�<�<�	M�%�	��t�C�Z��H�G�		����D��:�6�:�A���
����+�	M�"�#A�B��L�	M��
�	��"�t�s�{�� 1�2��9���	���	��M�M�O��s�{�� 1�2��9���	��M�M�O��s9�A	�A$�B�	A!�$B�/B�B�C�$B>�>Cc�j�VR	9d\R4h^RIHpT!T;'gTY$R7pTP
!YT3/TBpRTn
T# \d\	R4Rhi;i \\3d*pTP4TR8Xd
\R4ThhRp?iTP4h;i)
zYOpen bzip2 compressed tar archive name for reading or writing.
Appending is not allowed.
r�r�)�BZ2Filer�N)r�znot a bzip2 fileFr�)r*r�r�r�rr�r��EOFErrorr�rr�)	r�r�r�r�r�r�r�r
rs	&&&&&,   r2�bz2open�TarFile.bz2open�s���
��&��;�<�<�	L�#��'�/�/�T�4�M��		����D��:�6�:�A���
����!�	L�"�#@�A�t�K�	L����"�	��M�M�O��s�{�� 2�3��:���	��M�M�O��s"�A�A'�A$�'B2�8$B�B2c�f�VR	9d\R4h^RIHpHpT!T;'gTY$R7pTP!YT3/TBpRTn
T# \d\R4Rhi;i T\3d*p	TP4TR8Xd
\R4T	hhRp	?	iTP4h;i)
zXOpen lzma compressed tar archive name for reading or writing.
Appending is not allowed.
r�r�)�LZMAFiler�r�Nr�znot an lzma fileFr�)r*r�r�r�r�rr�r�r�rr�)
r�r�r�r�r�r�r�r�r
rs
&&&&&,    r2�xzopen�TarFile.xzopen�s���
��&��;�<�<�	M�0��7�?�?�d�D�@��		����D��:�6�:�A���
����!�	M�"�#A�B��L�	M���8�$�	��M�M�O��s�{�� 2�3��:���	��M�M�O��s"�A�A)�A&�)
B0�6$B�B0c��VR	9d\R4h^RIHpHp	T!T;'gTTTTTR7pTP!YT3/TBp
RT
nT
# \d\R4Rhi;i T	\3d*pTP4TR8Xd
\R4ThhRp?i\dTP4hi;i)
zXOpen zstd compressed tar archive name for reading or writing.
Appending is not allowed.
r�r�)�ZstdFiler�r�N)�level�options�	zstd_dictznot a zstd fileFr�)r*�compression.zstdr�r�r�rr�r�r�r�	Exceptionr�)r�r�r�r�r�r�r�r�r�r�r
rs&&&&&&&,    r2�zstopen�TarFile.zstopen�s�����&��;�<�<�	Y�<���O�O�t�����
��		����D��:�6�:�A���
����-�	Y�"�#M�N�TX�X�	Y���8�$�	��M�M�O��s�{�� 1�2��9����	��M�M�O��	�s(�A�A,�A)�,
B=�9$B�B=�*B=r�r�r�r�r�r�r�r�r�r�c�r�VP'dR#RVnVPR9d�VPP\\
^,,4V;P\
^,,
un\VP\4wrV^8�d2VPP\\V,
,4VP'gVPP4R#R# TP'gTPP4ii;i)zYClose the TarFile. In write-mode, two finishing zero blocks are
appended to the archive.
NTr�)r�r�r�rcr-rr%ra�
RECORDSIZEr�r�)r�rhris&  r2r��
TarFile.close.s����;�;�;�����	%��y�y�O�+����"�"�3�)�a�-�#8�9����	�A�
�.��%+�4�;�;�
�$C�!���q�=��L�L�&�&�s�j�9�.D�'E�F��#�#�#����"�"�$�$��4�#�#�#����"�"�$�$�s�B:D�/D6c�r�VPVPR44pVf\RV,4hV#)z�Return 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.
r~zfilename %r not found)�
_getmemberr(�KeyError)r�r�rZs&& r2�	getmember�TarFile.getmemberCs6���/�/�$�+�+�c�"2�3���?��2�T�9�:�:��r4c�~�VP4VP'gVP4VP#)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�s&r2�
getmembers�TarFile.getmembersNs)��	
���
��|�|�|��J�J�L��|�|�r4c�^�VP4Uu.uFqPNK	up#uupi)zxReturn the members of the archive as a list of their names. It has
the same order as the list returned by getmembers().
)r�r�)r�rZs& r2�getnames�TarFile.getnamesXs'��-1�O�O�,=�>�,=����,=�>�>��>s�*c��	�VPR4Ve
VPpVfTp\PP	V4wrBVP\PR4pVPR4pVP4pWn	VfAVP'g\P!V4pM;\P!V4pM$\P!VP44pRpVPp\P !V4'd�VP"VP$3p	VP'gSVP&^8�dBW�P(9d2W P(V	,8wd\*p
VP(V	,pM�\,p
V	^,'dW P(V	&M�\P.!V4'd\0p
M�\P2!V4'd\4p
M�\P6!V4'd\8p
\P:!V4pMH\P<!V4'd\>p
M%\P@!V4'd\Bp
MR#W%nW�n"VPFVn$VPJVn&V
\,8XdVPNVn(M^Vn(VPRVn*W�n+Wun,\Z'd}VPHVP\9d@\ZP^!VPH4^,VP\VPH&VP\VPH,Vn1\d'd}VPLVPf9d@\dPh!VPL4^,VPfVPL&VPfVPL,Vn5V
\>\B39dw\m\R4'da\m\R4'dK\Pn!VPp4Vn9\Pt!VPp4Vn;V# \`dRTP\TPH&ELZi;i \`dRTPfTPL&L�i;i)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��major�minor)<r�r�r�r��
splitdriver�r�r�rZr�r��lstat�stat�fstat�fileno�st_mode�S_ISREG�st_ino�st_dev�st_nlinkr�r�r��S_ISDIRr��S_ISFIFOr��S_ISLNKr��readlink�S_ISCHRr�S_ISBLKrr��st_uidr#�st_gidr$�st_sizer!�st_mtimer"r�r��pwdr��getpwuidr�r��grpr��getgrgidr�r�r��st_rdevr�r�r�)r�r��arcnamer��drvrZ�statresr��stmd�inoder�s&&&&       r2�
gettarinfo�TarFile.gettarinfo^sX��	
���E�����<�<�D�
�?��G��w�w�)�)�'�2����/�/�"�&�&�#�.���.�.��%���,�,�.�����?��#�#�#��(�(�4�.���'�'�$�-���h�h�w�~�~�/�0�G��������<�<�����^�^�W�^�^�4�E��#�#�#��(8�(8�1�(<��[�[�(�W���E�8J�-J����;�;�u�-������8�8�)0�K�K��&��
�\�\�$�
�
��D�
�]�]�4�
 �
 ��D�
�\�\�$�
�
��D��{�{�4�(�H�
�\�\�$�
�
��D�
�\�\�$�
�
��D�������n�n����n�n����7�?�"�?�?�G�L��G�L��(�(��
���#���3��{�{�$�,�,�.�3�03���W�[�[�0I�!�0L�D�L�L����-�!�L�L����5�G�M��3��{�{�$�,�,�.�3�03���W�[�[�0I�!�0L�D�L�L����-�!�L�L����5�G�M��G�W�%�%��r�7�#�#���G�(<�(<�#%�8�8�G�O�O�#<�� �#%�8�8�G�O�O�#<�� ���� �3�02�D�L�L����-�3�� �3�02�D�L�L����-�3�s$� >R�(>R<�$R9�8R9�<$S#�"S#r�c��\\P\\P\
\P\\P\\P\\P/pVP4VfTpVEF3pV'Ed}VPf
\R4MKVP!VP"^4p\\P$!WTP,44\VP&;'g
VP(:RVP*;'g
VP,:24VP/4'gVP14'd1\RRVP2VP43,,4M\RVP6,4VP8f
\R4M7\R\:P<!VP84R	,,4\VP>VPA4'dRMR
,4V'deVPC4'd\RVPD,4VPG4'd\RVPD,4\I4EK6	R#)
z�Print 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
??????????r~z%10sz%d,%dz%10dz????-??-?? ??:??:??z%d-%02d-%02d %02d:%02d:%02d:N�Nr�z-> zlink to )%r�r��S_IFREGr��S_IFLNKr��S_IFIFOr�S_IFCHRr��S_IFDIRr�S_IFBLKr�r�rsrr�r�r�r#r�r$r�r�r�r�r!r"r��	localtimer�r�r�r�r�rr)r��verboser��	type2moderZ�modetypes&&$   r2r\�TarFile.list�s����d�l�l�G�T�\�\��t�|�|�W�d�l�l��d�l�l�G�T�\�\�C�	�	
���
��?��G��G��w��<�<�'���-�(�}�}�W�\�\�1�=�H���
�
�h���.E� F�G��w�}�}�'C�'C����'C�'.�}�}�'C�'C����'C�E�F��=�=�?�?�g�m�m�o�o���$��(8�(8�'�:J�:J�'K�K�!M�N� ����� 5�6��=�=�(�� 5�6�� =�"&�.�.����"?��"C�!D�E�
����w�}�}����B�G�H���=�=�?�?����(8�(8� 8�9��=�=�?�?��
�W�-=�-=� =�>��G�7r4�filterc���VPR4VfTpVPeJ\PP	V4VP8XdVP^RV,4R#VP^V4VP
W4pVfVP^RV,4R#Ve(V!V4pVfVP^RV,4R#VP4'd1\VR4;_uu_4pVPWV4RRR4R#VP4'd�VPV4V'dw\\P!V44FQpVP\PPW4\PPW&4W4R7KS	R#R#VPV4R# +'giR#;i)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�Nztarfile: Skipped %rztarfile: Unsupported type %r�tarfile: Excluded %rr0)r))r�r�r�r�r��_dbgrr�r��addfiler�r��listdir�addr)r�r�r�	recursiver)rZ�fs&&&&$  r2r/�TarFile.add�sq��	
���E���?��G��9�9� �R�W�W�_�_�T�%:�d�i�i�%G��I�I�a�.��5�6���	�	�!�T���/�/�$�0���?��I�I�a�7�$�>�?�����W�o�G����	�	�!�3�d�:�;���=�=�?�?��4��&�&�!����W�(�'�&��]�]�_�_��L�L��!����
�
�4� 0�1�A��H�H�R�W�W�\�\�$�2�B�G�G�L�L��4L�%��6�2��
�L�L��!�'�&�&�s�G�G-	c�8�VPR4Vf3VP4'dVP^8wd\R4h\P!V4pVPVPVPVP4pVPPV4V;P\V4,
unVPpVe�\W PVPVR7\VP\ 4wrVV^8�d;VPP\"\ V,
,4V^,
pV;PV\ ,,
unVP$P'V4R#)aAdd the TarInfo object 'tarinfo' to the archive. If 'tarinfo' represents
a non zero-size regular file, the 'fileobj' argument 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�Nz3fileobj not provided for non zero-size regular file)rg)r�r�r!r*r�r�rPr0r1r�rcr%r,r�r`rarr-r�r
)r�rZr�rYrgrhris&&&    r2r-�TarFile.addfile&	s��	
���E���?�w�}�}���7�<�<�1�3D��R�S�S��)�)�G�$���m�m�D�K�K�������D�������3�����s�3�x���� � ��������w�|�|�W�M� &�w�|�|�Y� ?��F��1�}����"�"�3�)�i�*?�#@�A��!����K�K�6�I�-�-�K������G�$r4c��Vf:VPpVf\#\V\4'd\	R4hV#\V4'dV#\V,# \d\RT:R24Rhi;i)Nzfilter z
 not foundzrString names are not supported for TarFile.extraction_filter. Use a function such as tarfile.data_filter directly.)	�extraction_filterr�r�r��	TypeError�callable�_NAMED_FILTERSr�r*)r�r)s&&r2�_get_filter_function�TarFile._get_filter_functionB	s����>��+�+�F��~�"�"��&�#�&�&��6�7�7��M��F����M�	G�!�&�)�)���	G��w�v�j�
�;�<�$�F�	G�s�A�A<�
numeric_ownerc	��.pVPV4pVfTpVFlpVPWvV4wr�VfKVP4'dVPV	4VP	W�VP4'*VVR7Kn	VPRRR7VF�p	V!W�4pTfTPT	R4K%\PPYP4p\P!T4p\P !TP"4'gTPTR4K�TP%Y�TR	7TP'Y�4TP)Y�4K�	R# \d(p
TPT	\T
44Rp
?
EKRp
?
ii;i \dTPTR4EK0i;i \*dp
TP-T
4Rp
?
EKWRp
?
ii;i)
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.

The 'filter' function will be called on each member just
before extraction.
It can return a changed TarInfo or None to skip the member.
String names of common filters are accepted.
N)�	set_attrsr<�filter_functionc��VP#r�r�)r�s&r2�<lambda>�$TarFile.extractall.<locals>.<lambda>w	s��q�v�vr4T)r��reversezexcluded by filter�missingznot a directory)r<)r:�_get_extract_tarinfor�r
�_extract_one�sort�_FILTER_ERRORS�_log_no_directory_fixup�reprr�r�rr�r��FileNotFoundErrorr�rr�chown�utime�chmodr	�_handle_nonfatal_error)r�r�r�r<r)�directoriesr?r�rZ�
unfiltered�exc�dirpathr�rs&&&$$         r2�
extractall�TarFile.extractallT	s������3�3�F�;���?��G��F�"&�";�";���#/��G�����}�}����"�"�:�.����g�7�=�=�?�7J�,9�.=�
�
?��	���-�t��<�&�J�
/��-�j�?�G��?��0�0��1E�G���'�'�,�,�t�\�\�:����H�H�W�-�E��|�|�E�M�M�2�2��0�0��:K�L���
�
�7�=�
�I��
�
�7�,��
�
�7�,�5&��&���0�0��T�#�Y�G�����)���0�0��)�D���� �
/��+�+�A�.�.��
/�sr�'E<�/G�)G�1F1�%G�-G�5G�<F.�F)�"G�)F.�.G�1G�G�G�G�G>�!G9�9G>c�P�VP^RVP:RV:R24R#)rdz!tarfile: Not fixing up directory z (�)N)r,r�)r�r��reasons&&&r2rI�TarFile._log_no_directory_fixup�	s���	�	�!��;�;��(�	)r4c��VPV4pVPWV4wrxVeVPWrW44R#R#)aDExtract 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.

The 'filter' function will be called before extraction.
It can return a changed TarInfo or None to skip the member.
String names of common filters are accepted.
N)r:rErF)	r�r�r�r>r<r)r?rZrQs	&&&&$$   r2�extract�TarFile.extract�	sG���3�3�F�;��"�7�7��T�+��������g�Y�F�r4c�(�\V\4'dVPV4pMTpRpV!WC4pVf&VP^RVP,4R#VP4'dE\P!V4p\PPW5P 4VnWT3# \\\
3dpTP
T4Rp?L�Rp?i\dpTPT4Rp?L�Rp?ii;i)zrGet (filtered, unfiltered) TarInfos from *member*

*member* might be a string.

Return (None, None) if not found.
Nr+)NN)r�r�r�r�r�r�_handle_fatal_errorr	rOr,r�r�r�r�r�rr�r�)r�r�r?r�rQ�filteredrs&&&&   r2rE�TarFile._get_extract_tarinfo�	s����f�c�"�"�����/�J��J���	+�&�z�8�H�
���I�I�a�/�*�/�/�A�B����>�>����y�y��*�H�$&�G�G�L�L��7H�7H�$I�H�!��#�#���+�[�9�	(��$�$�Q�'�'���	+��'�'��*�*��	+�s)�B<�<D�C(�(D�5D�6D�Dc	�P�VPR4VPV\PP	W!P
4VVVVR7R# \\3dpTPT4Rp?R#Rp?i\dpTPT4Rp?R#Rp?ii;i)z�Extract from filtered tarinfo to disk.

filter_function is only used when extracting a *different*
member (e.g. as fallback to creating a symlink)
r�)r>r<r?�extraction_rootN)r��_extract_memberr�r�rr�r�r�r^r	rO)r�rZr�r>r<r?rs&&&&&& r2rF�TarFile._extract_one�	s���	
���C��		+�� � ��"�'�'�,�,�t�\�\�*J�+4�/<�1@�15�	
!�
7��
�+�,�	(��$�$�Q�'�'���	+��'�'��*�*��	+�s)�>A�B%�$A;�;B%�B%�	B � B%c�\�VP^8�dhVP^RV,4R#)z=Handle non-fatal error (ExtractError) according to errorlevel�tarfile: %sN)r�r,�r�rs&&r2rO�TarFile._handle_nonfatal_error�	s$���?�?�Q����I�I�a���*�+r4c�v�VP^8�dh\V\4'ddVPf&VP	^RVP
,4R#VP	^RVP
:RVP:24R#VP	^R\
V4P:RV:24R#)z1Handle "fatal" error according to self.errorlevelNrfz	tarfile: rm)r�r�r��filenamer,�strerrorr�rwrgs&&r2r^�TarFile._handle_fatal_error�	sw���?�?�Q���
��7�
#�
#��z�z�!��	�	�!�]�Q�Z�Z�7�8��	�	�!����Q�Z�Z�H�I��I�I�a�T�!�W�-=�-=�q�A�Br4c���VPR4\V\4'dVPV4pMTpVP	4'gVP
\9dVPW4#VP4'gVP4'dL\VP\4'd\R4hVPVPV44#R#)a(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. For all other
existing members, None is returned. If 'member' does not appear
in the archive, KeyError is raised.
r�z'cannot extract (sym)link as file objectN)r�r�r�r�r�r�r=�
fileobjectr�r�r�r�r�extractfile�_find_link_target)r�r�rZs&& r2ro�TarFile.extractfile�	s���	
���C���f�c�"�"��n�n�V�,�G��G��=�=�?�?�g�l�l�/�A��?�?�4�1�1�
�]�]�_�_��
�
����$�,�,��0�0�"�"K�L�L��'�'��(>�(>�w�(G�H�H�r4r?rbc�(�VPR4pVPR\P4p\PPV4pV'd>\PP
V4'g\P!VRR7VP4'gVP4'd/VP^VP:RVP:24MVP^VP4VP4'dVPW4EMVP4'dVP!W4M�VP#4'dVP%W4M�VP'4'gVP)4'dVP+W4MyVP4'gVP4'dVP-WVVR7M8VP.\09dVP3W4MVPW4V'dOVP5WV4VP4'g%VP7W4VP9W4R#R#R#)z�Extract the filtered TarInfo object tarinfo to a physical
file called targetpath.

filter_function is only used when extracting a *different*
member (e.g. as fallback to creating a symlink)
r~T)�exist_okz -> �r?rbN)r(r�r�r�r�r�r��makedirsr�r�r,r�r�r��makefiler��makedirr��makefifor�r��makedev�makelink_with_filterr�r=�makeunknownrLrNrM)r�rZ�
targetpathr>r<r?rb�	upperdirss&&&&&$$ r2rc�TarFile._extract_member
s��� �&�&�s�+�
��'�'��R�V�V�4�
��G�G�O�O�J�/�	��R�W�W�^�^�I�6�6�
�K�K�	�D�1��=�=�?�?�g�m�m�o�o��I�I�a�w�|�|�W�5E�5E�F�G��I�I�a����&��=�=�?�?��M�M�'�.�
�]�]�_�_��L�L��-�
�^�^�
�
��M�M�'�.�
�]�]�_�_��
�
����L�L��-�
�]�]�_�_��
�
����%�%�� /� /�
&�
1��\�\��
0����W�1��M�M�'�.���J�J�w�M�:��=�=�?�?��
�
�7�/��
�
�7�/�#�r4c���VPf\P!V4R#\P!VR4R# \d+\PPT4'ghR#i;i)z,Make a directory called targetpath.
        Ni�)r�r��mkdir�FileExistsErrorr�r��r�rZr|s&&&r2rw�TarFile.makedirN
sW��
	��|�|�#�����$�����U�+���	��7�7�=�=��,�,��-�	�s�$A�A�/A6�1A6�5A6c
���VPpVPVP4VPp\	VR4;_uu_4pVP
eeVP
F(wrgVPV4\
W5V\V4K*	VPVP4VP4M\
W5VP\V4RRR4R# +'giR#;i)z'Make a file called targetpath.
        r�N)
r�rrVr�r�rWr`rr!�truncate)r�rZr|�sourcerg�targetr%r!s&&&     r2rv�TarFile.makefile]
s����������G�'�'�(��"�"��
�z�4�
(�
(�F��~�~�)�$+�N�N�L�F��K�K��'����i��I�%3����G�L�L�)����!��F�G�L�L�)�W�M�)�
(�
(�
(�s
�BC!�!C2	c�n�VPW4VP^RVP,4R#)zFMake a file from a TarInfo object with an unknown type
at targetpath.
z9tarfile: Unknown file type %r, extracted as regular file.N)rvr,r�r�s&&&r2r{�TarFile.makeunknownm
s1��	
�
�
�g�*��	�	�!�2�4;�L�L�A�	Br4c�t�\\R4'd\P!V4R#\R4h)z'Make a fifo called targetpath.
        �mkfifozfifo not supported by systemN)r�r�r�r	r�s&&&r2rx�TarFile.makefifou
s)���2�x� � ��I�I�j�!��=�>�>r4c��\\R4'd\\R4'g\R4hVPpVfRpVP	4'dV\
P,pMV\
P,p\P!W#\P!VPVP44R#)z<Make a character or block device called targetpath.
        �mknodryz'special devices not supported by systemNr)r�r�r	r�r�r�r#r!r�ryr�r�)r�rZr|r�s&&& r2ry�TarFile.makedev}
s����r�7�#�#�7�2�y�+A�+A��H�I�I��|�|���<��D��=�=�?�?��D�L�L� �D��D�L�L� �D�
�������G�,�,�g�.>�.>�?�	Ar4c�(�VPWRR4#r�)rzr�s&&&r2�makelink�TarFile.makelink�
s���(�(��d�D�I�Ir4c���RpVP4'd_\PPV4'd\P!V4\P
!VPV4R#\PPVP4'd$\P!VPV4R#VPV4pTfTpMTf\R4hT!Yd4pTeTP#YrTTR7R#R# \dRpL\i;i \dT'd
\R4Rhhi;i \dp\YP 4ThRp?ii;i)aMake 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.

filter_function is only used when extracting a *different*
member (e.g. as fallback to creating a link).
FNTz%unable to resolve link inside archivertz[makelink_with_filter: if filter_function is not None, extraction_root must also not be None)r�r�r��lexists�unlink�symlinkr�r�r��link�symlink_exceptionrpr�r	rHrr�rc)	r�rZr|r?rb�keyerror_to_extracterrorrQr_�causes	&&&&&    r2rz�TarFile.makelink_with_filter�
s_��$)� �
	,��}�}����7�7�?�?�:�.�.��I�I�j�)��
�
�7�+�+�Z�8���7�7�>�>�'�"6�"6�7�7��G�G�G�0�0�*�=��8�	��/�/��8�J��"�!�H��&�"�>�?�?�
M�*�:�G����� � ��1@�1@�
!�
B� ��/!�	,�'+�$�	,��
�	�'�"�;�=�BF�G��	�� "�
M�'����A�u�L��
M�sQ�D�$D�7D�8.D�'!D�D+�4E�
D(�'D(�+E�>E�E5�E0�0E5c�*�\\R4'Ed5\P!4^8XEdVPpVPpV'g�\
'd:VP'd(\
P!VP4^,p\'d:TP'd(\P!TP4^,pVfRpVfRpVP4'd0\\R4'd\P!W%V4R#\P!W%V4R#R#R# \dL�i;i \dL�i;i \\ 3dp\#R4ThRp?ii;i)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.
�geteuidN�lchownzcould not change ownerr6)r�r�r�r$r#rr��getgrnamr�rr��getpwnamr�r�rLr��
OverflowErrorr	)r�rZr|r<�g�urs&&&&   r2rL�
TarFile.chown�
s)���2�y�!�!�b�j�j�l�a�&7����A����A� ���s�w�}�}�}��L�L����7��:����s�w�}�}�}��L�L����7��:���y����y���
D��=�=�?�?�w�r�8�'<�'<��I�I�j�Q�/��H�H�Z�A�.�/'8�!�� �����
 ������]�+�
D�"�#;�<�!�C��
D�s`�E� E�2'E�E�&E�8'E�,E0�-E0�1E0�E�E�E-�,E-�0F�F
�
Fc��VPfR#\P!W!P4R# \dp\	R4ThRp?ii;i)zASet file permissions of targetpath according to tarinfo.
        Nzcould not change mode)r�r�rNr�r	)r�rZr|rs&&& r2rN�
TarFile.chmod�
sD���<�<���	?��H�H�Z���.���	?��6�7�Q�>��	?�s� 4�A�A�Ac���VPpVfR#\\R4'gR#\P!W#V34R# \dp\R4ThRp?ii;i)zBSet modification time of targetpath according to tarinfo.
        NrMz"could not change modification time)r"r�r�rMr�r	)r�rZr|r"rs&&&  r2rM�
TarFile.utime�
s[���
�
���=���r�7�#�#��	L��H�H�Z���0���	L��C�D�!�K��	L�s�A�A"�A�A"c��VPR4VPeVPpRVnV#VPVPP	48wdlVP^8XdR#VPPVP^,
4VPP
^4'g\R4hRpVPPV4pTe0TP0'gTP2P5T4T#RTnT# \depTP'dITP^RTPT3,4T;P\,
unRp?K�Rp?L�Rp?i\d�pTP'dJTP^RTPT3,4T;P\,
unRp?EK-TP^8Xd\\T44RhRp?EL<Rp?i\ d"TP^8Xd
\R4RhELj\"d2pTP^8Xd\\T44RhRp?EL�Rp?i\$dp\\T44RhRp?i\&dHp^RIp\+Y4P,4'd\RT24RhTh \.dThi;iRp?ii;i)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.
�raNr^Tz0x%X: %sz
empty filezzlib error: )r�r�r%r�rrrbrrZr3r�r�r,rrFr�r�r�r�r�r�r�r�r�r�r�r
r�)r��mrZrr�s&    r2rC�TarFile.next�
se��
	
���D�����'�� � �A�#�D���H��;�;�$�,�,�+�+�-�-��{�{�a����L�L���d�k�k�A�o�.��<�<�$�$�Q�'�'�� 8�9�9����
��,�,�2�2�4�8��<
����;�;�;����#�#�G�,��� �D�L����M"�
��$�$�$��I�I�a��t�{�{�A�.>�!>�?��K�K�9�,�K��%��&�
6��$�$�$��I�I�a��t�{�{�A�.>�!>�?��K�K�9�,�K���[�[�A�%�#�C��F�+��5�&��#�
<��;�;�!�#�#�L�1�t�;�$�'�
6��;�;�!�#�#�C��F�+��5�$��(�
2���A��'�T�1���
���!�!�Z�Z�0�0�'�,�q�c�(:�;��E����"���G���
�s��
D%�%L�0AF�L�L�AH$�8&H$�$L�1L�L�L�&J�L�L�J+�+L�8L�:0K*�*K8�8K;�;Lc��VP4pRpVeVPV4pVRVpV'd \PPV4p\
V4FrpV'd VPVP8XdRpK*V'd+\PPVP4pMVPpW8XgKpVu#	V'd\V4hR# \dRpL�i;i)zjFind an archive member by name from bottom to top.
If tarinfo is given, it is used as the starting point.
FNT)	r��indexr*r�r�r��reversedr%r�)	r�r�rZ�	normalizer��skippingr�r��member_names	&&&&     r2r��TarFile._getmemberAs���
�/�/�#������
*��
�
�g�.��"�&�5�/����7�7�#�#�D�)�D��w�'�F���>�>�V�]�]�2�$�H��� �g�g�.�.�v�{�{�;��$�k�k���"��
�(���W�%�%���1�
 � ��
 �s�C+�+
C;�:C;c�d�VP'gVP4eKRVnR#R#)zvRead through the entire archive file and look for readable
members. This should not run if the file is set to stream.
NT)r�rCr�r�s&r2r��
TarFile._loadis(���{�{�{��)�)�+�)���D�L�r4c���VP'd'\RVPP,4hVe0VPV9d\RVP,4hR#R#)z[Check 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[rwr�)r�r�s&&r2r��TarFile._checkrsU���;�;�;��.�4�>�>�+B�+B�B�C�C����	�	�� 5��5��	�	�A�B�B�!6�r4c�B�VP4'dRRP\R\PPVP4VP344pRpMVPpTpVPW#RR7pVf\RV,4hV#)zGFind the target member of a symlink or hardlink member in the
archive.
r~NT)rZr�zlinkname %r not found)
r�rr)r�r�r�r�r�r�r�)r�rZr��limitr�s&&   r2rp�TarFile._find_link_target{s����=�=�?�?��x�x��t�b�g�g�o�o�g�l�l�.K�W�M]�M]�-^� _�`�H��E��'�'�H��E�����D��I���>��2�X�=�>�>��
r4c#�"�VP'dVPRjx�L
R#^pVPeVP4pV^,
pVx�V\	VP48dVPV,pM6VP'g#VP4pV'g
RVnR#MR#V^,
pVx�KtL�5i)z$Provide an iterator object.
        NT)r�r�r�rCr,)r�r�rZs&  r2�__iter__�TarFile.__iter__�s�����<�<�<��|�|�#�#�������'��i�i�k�G��Q�J�E��M���s�4�<�<�(�(��,�,�u�-���\�\�\��)�)�+���#'�D�L�����Q�J�E��M�3
$�s�"C�C�A3C�C�1Cc�`�WP8:d\V\PR7R#R#)z.Write debugging output to sys.stderr.
        ��fileN)r�rrrp�stderr)r�r��msgs&&&r2r,�TarFile._dbg�s!���J�J���#�C�J�J�'�r4c�&�VP4V#r�)r�r�s&r2�	__enter__�TarFile.__enter__�s�����
��r4c��VfVP4R#VP'gVPP4RVnR#�NT)r�r�r�r�)r�r�r��	tracebacks&&&&r2�__exit__�TarFile.__exit__�s5���<��J�J�L��#�#�#����"�"�$��D�Kr4)r�r�r�r�r�r�r�r�r�r0r�r1r�r�rPr�r�r�r�r�r%r�r�rZ)Nr�NNNNNNr�NNNNF)r�N)r�N�	)r�NN)r�NNNN)NNNr3r�r�)�.N)r�T)TF)NF)Drwrxryrzr{r�r�r�r�r�rPr�r0r1rrZrTrnr6r�r�r�rr�r�r�r�r�r�r�r�r�r�rr\r/r-r:rTrIr[rErFrOr^rorcrwrvr{rxryr�rzrLrNrMrCr�r�r�rpr�r,r�r�r|r�r�s@r2rr�s	�����
�E��K��L��J��F��H�
�F��G��J���f�f��#�t�Z�j/��j/�X�2��2�����@����6����6� �� �H	�y��x�
�y��x�
�y��I�%�*	��?�h�T)�D�)�V1"��1"�f%�8G�$C/�%�C/��C/�J)�G��G��G�($�<+�(,�
C��@10�@D�10�(,�10�p
�N� B�?�A�$J�0B�d D�D?�L�>�F&&�P �C��&�>(���r4c���\VR4'd/VP4p\VR7pVPV4M\V4pVP	4R# \
dR#i;i)z�Return True if name points to a tar archive that we
are able to handle, else return False.

'name' should be a string, file, or file-like object.
rb)r�TF)r�rrrr�r)r�r�r
s&  r2�
is_tarfiler��s[��
��4�� � ��)�)�+�C��T�"�A��I�I�c�N��T�
�A�	���	�������s�AA�A.�-A.c��	�^RIpRpVPVRR7pVPRRRRR	R
7VPRR\R
R7VP	RR7pVPRRRRR7VPRRRR<RR7VPRRRR=RR7VPRRRRR7VP4pVP'd!VPfVP^R 4VPe�VPp\V4'd�\VR!4;_uu_4pVP4\VP4\PR"7RRR4VP 'd\R#P#V44R#R#VP^R$P#V44R#VP$e�VP$p\V4'dF\&PVR%4;_uu_4pVP%VP R&7RRR4R#VP^R$P#V44R#VPEeK\)VP4^8Xd%VP^,p\*P,pMI\)VP4^8XdVPwrXM VP^VP/44\X4'd�\&PVR%4;_uu_4pVP1XVPR'7RRR4VP 'd8XR(8XdR)P#V4p	MR*P#WX4p	\V	4R#R#VP^R$P#V44R#VP2e�VP2P5^4p
\*P6P9V
4wr�R+R,R-R,R.R/R0R/R1R2R3R2R4R2R5R2R6R7R8R7/
p
W�9dR9W�,,MR:pVP2p\&PW�4;_uu_4pVFpVP;V4K	RRR4VP 'd\R;P#V
44R#R#R# +'giELE;i +'giR#;i +'giEL�;i +'giL~;i)>rNz3A simple command-line interface for tarfile module.T)�description�colorz-vz	--verbose�
store_trueFzVerbose output)�action�default�helpz--filterz<filtername>zFilter for extraction)�metavar�choicesr�)�requiredz-lz--list�	<tarfile>zShow listing of a tarfile)r�r�z-ez	--extract�+zExtract tarfile into target dir)�nargsr�r�z-cz--createzCreate tarfile from sourcesz-tz--testzTest if a tarfile is validz&--filter is only valid for extraction
r�r�z{!r} is a tar archive.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�z.tgzz.xzr�z.txzz.bz2r�z.tbzz.tbz2z.tb2z.zstr�z.tzstzw:r�z{!r} file created.)r�z<output_dir>)z<name>z<file>)�argparse�ArgumentParser�add_argumentr9�add_mutually_exclusive_group�
parse_argsr)r[�exit�testr�rr�rrrpr�r%rPr\rr,r��curdir�format_helprT�creater�r��splitextr/)r�r��parserrM�argsrdr��tfr�r��tar_namer_�ext�compressions�tar_mode�	tar_files�	file_names                 r2�mainr��s���G�K�
�
$�
$��D�
$�
I�F�
����k�,��-��/�
���
�N� .�4��6�
�/�/��/�>�E�	���t�X�{�7��9�	���t�[��<�=��?�
���t�Z�s�3�9��;�
���t�X�{�8��:�����D��{�{�{�t�|�|�+����A�@�A��y�y���i�i���c�?�?��c�3���3���� ��c�n�n�&�S�Z�Z�8� ��|�|�|��.�5�5�c�:�;��
�K�K��9�@�@��E�F�	
���	��i�i���c�?�?����c�5�)�)�R��������-�*�)�
�K�K��9�@�@��E�F�	
���	!��t�|�|���!��,�,�q�/�C��Y�Y�F�
����
�!�
#��,�,�K�C���K�K��6�-�-�/�0��c�?�?����c�5�)�)�R��
�
�6�$�+�+�
�>�*��|�|�|��S�=�3�:�:�3�?�C�2�39�6�#�3F���c�
�
�
�K�K��9�@�@��E�F�	
���	 ��;�;�?�?�1�%�����!�!�(�+���
�4��D��4��D��E��E��U��E��E��U�
�� 03�/B�4�,�+�+����K�K�	�
�\�\�(�
-�
-��&�	����y�!�'�.��<�<�<��&�-�-�h�7�8��5
!�M ����*�)�)��*�)�)��D.�
-�s0�2:R(�R<�S�S$�(R9	�<S
	�S!	�$S4	�__main__)rrr�rrrrr	r
r�r�rLr�r�rr�r�r�rrr
rrrr)r�r�r!r"r#r$r�r�>r�r�r�r�r3)mr{�version�
__author__�__credits__�builtinsrr�rpr�r@r_r�r�rWr��rerr�r�AttributeError�NotImplementedErrorr�r��__all__r-rr�r�r�r�r�rr�r%r�r�rrr�r��CONTTYPEr�r�r&r�r�r8r�rLr�r�r=r{r)rorPr�rDrpr�r��getfilesystemencodingr3r:rIrRr\r`rsr�rr	rrrr
r�r�r�rFr�r�r��objectr�r#�BufferedReaderrTrrr
rrrrrHr�r�r�r�r9r��compilerKrrr�r�rwrur4r2�<module>rs���8���6�
�H��
'�
�	�	�
���
��	�����$�%8�'�B��?�����	�
��^�
��	��������
�
����
��
��
��
��
������������
��
������
�
�
�
����H�g��G�X��W�g�#�%5�!�	#���(��>�+�
��/�
�
�	�.�
�9��
�U��U��U�	�3�	�3�
�C�
���7�7�d�?��H��(�(�*�H�0�&�
�(�N�
�<*�"&��$��2�	�y�	�	�8�	�	��	�	�x�	�	�(�	�	�(�	�	�{�	�	�;�	�	�[�	�	��	�	�K�	���0|�|�~�6��@i�&�i�X"�2�$�$�"�	�(�	�J��J�
?�k�?�@�{�@�
L��L�
?�+�?�D��D��w��5��B�H����)�	�:�
�K���	����:�:�&8�9��o9�f�o9�d]�f�]�F)�$�|�|��`9�D�z���F���S`��
�C�����
�C��s"�I&�I6�&	I3�2I3�6	J�J