Your IP : 18.191.84.179


Current Path : /opt/alt/python36/lib64/python3.6/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/__pycache__/tarfile.cpython-36.opt-2.pyc

3

��2axl�'@svdZdZdZdZdZddlmZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZyddlZWnek
r�dZYnXyddlZWnek
r�dZYnXeefZyeef7ZWnek
r�YnXdd	d
ddd
dddddddddgZdZdZedZdZdZdZdZ 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/d+Z0dZ1d,Z2d-Z3e2Z4e"e#e$e%e(e)e*e&e'e+e,e-fZ5e"e#e*e-fZ6e+e,e-fZ7djZ8d.d/d4d5hZ9e:e:e:e;e;e;d6�Z<e	j=d7k�r�d8Z>nej?�Z>d9d:�Z@d;d<�ZAd=d>�ZBd?e4fd@dA�ZCdBdC�ZDdedfdDdE�ZEdFdG�ZFdHdI�ZGGdJd�deH�ZIGdKd�deI�ZJGdLd�deI�ZKGdMd
�d
eI�ZLGdNd�deI�ZMGdOd�deI�ZNGdPdQ�dQeN�ZOGdRdS�dSeN�ZPGdTdU�dUeN�ZQGdVdW�dWeN�ZRGdXdY�dYeN�ZSGdZd[�d[�ZTGd\d]�d]�ZUGd^d_�d_eV�ZWGd`da�daeV�ZXGdbdc�dce
jY�ZZGddd	�d	eV�Z[Gded�deV�Z\dfd
�Z]e\jZdgdh�Z^e_dik�rre^�dS)kz0.9.0u"Lars Gustäbel (lars@gustaebel.de)z5$Date: 2011-02-25 17:42:01 +0200 (Fri, 25 Feb 2011) $z?$Id: tarfile.py 88586 2011-02-25 15:42:01Z marc-andre.lemburg $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�gname)ZatimeZctimer(r)r*r'�ntzutf-8cCs(|j||�}|d|�|t|�tS)N)�encode�len�NUL)�s�length�encoding�errors�r5�,/opt/alt/python36/lib64/python3.6/tarfile.py�stn�sr7cCs*|jd�}|dkr|d|�}|j||�S)Nrr#���)�find�decode)r1r3r4�pr5r5r6�nts�s
r<cCs�|ddkrfd}x0tt|�d�D]}|dK}|||d7}q"W|ddkr�dt|�d|}n@y"t|dd�}t|j�p�d	d�}Wntk
r�td
��YnX|S)Nr��r#���ascii�strict�0zinvalid header)r=r>)�ranger/r<�int�strip�
ValueError�InvalidHeaderError)r1�n�ir5r5r6�nti�srKr?cCs�t|�}d|ko"d|dknrDtd|d|fd�t}n�|tkr�d|d|kopd|dknr�|dkr�tdg�}ntdg�}d||}x6t|d�D]}|jd|d@�|dL}q�Wntd	��|S)
Nrr?r#z%0*orAr@r=r>zoverflow in number field)rE�bytesr0r�	bytearrayrD�insertrG)rI�digits�formatr1rJr5r5r6�itn�s 2
rQcCs0dttjd|��}dttjd|��}||fS)Nr@Z
148B8x356BZ
148b8x356b)�sum�struct�unpack_from)�bufZunsigned_chksumZ
signed_chksumr5r5r6�calc_chksums�s	rVc	Cs�|pd}|dkrdS|dkr.tj|||�dSt||�\}}x8t|�D],}|j|�}t|�|krh|d��|j|�qFW|dkr�|j|�}t|�|kr�|d��|j|�dS)N�irzunexpected end of datai@)�shutil�copyfileobj�divmodrD�readr/�write)	�src�dstr2�	exception�bufsize�blocks�	remainder�brUr5r5r6rY�s$


rYcCs ddl}|jdtd�tj|�S)Nrz$deprecated in favor of stat.filemoder$)�warnings�warn�DeprecationWarning�stat�filemode)�moderdr5r5r6rhsrhcCs8ttjdd�}|dk	r(|j|d�j|�}t|dd�dS)Nr3�backslashreplace� )�end)�getattr�sys�stdoutr.r:�print)r1r3r5r5r6�_safe_printsrqc@seZdZdS)rN)�__name__�
__module__�__qualname__r5r5r5r6rsc@seZdZdS)r
N)rrrsrtr5r5r5r6r
sc@seZdZdS)rN)rrrsrtr5r5r5r6rsc@seZdZdS)rN)rrrsrtr5r5r5r6rsc@seZdZdS)r	N)rrrsrtr5r5r5r6r	sc@seZdZdS)rN)rrrsrtr5r5r5r6r"sc@seZdZdS)�EmptyHeaderErrorN)rrrsrtr5r5r5r6ru%sruc@seZdZdS)�TruncatedHeaderErrorN)rrrsrtr5r5r5r6rv(srvc@seZdZdS)�EOFHeaderErrorN)rrrsrtr5r5r5r6rw+srwc@seZdZdS)rHN)rrrsrtr5r5r5r6rH.srHc@seZdZdS)�SubsequentHeaderErrorN)rrrsrtr5r5r5r6rx1srxc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�
_LowLevelFilecCsFtjtjtjBtjBd�|}ttd�r2|tjO}tj||d�|_dS)N)�r�w�O_BINARYi�)	�os�O_RDONLY�O_WRONLY�O_CREAT�O_TRUNC�hasattrr|r�fd)�self�namerir5r5r6�__init__>s

z_LowLevelFile.__init__cCstj|j�dS)N)r}�closer�)r�r5r5r6r�Gsz_LowLevelFile.closecCstj|j|�S)N)r}r[r�)r�r'r5r5r6r[Jsz_LowLevelFile.readcCstj|j|�dS)N)r}r\r�)r�r1r5r5r6r\Msz_LowLevelFile.writeN)rrrsrtr�r�r[r\r5r5r5r6ry8s	ryc@speZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
ddd�Zddd�Zdd�Z
dd�ZdS)�_Streamc	Cs�d|_|dkrt||�}d|_|dkr6t|�}|j�}|p<d|_||_||_||_||_d|_	d|_
d|_�yL|dkr�yddl}Wnt
k
r�td��YnX||_|jd�|_|d	kr�|j�|j|_n|j�n�|d
k�r:yddl}Wnt
k
�r
td��YnX|d	k�r.d|_|j�|_t|_n
|j�|_n||dk�r�yddl}Wnt
k
�rntd
��YnX|d	k�r�d|_|j�|_|j|_n
|j�|_n|dk�r�td|��Wn&|j�s�|jj�d|_�YnXdS)NTF�*��r�gzzzlib module is not availablerz�bz2zbz2 module is not available�xzzlzma module is not available�tarzunknown compression type %r) �_extfileobjry�_StreamProxy�getcomptyper�ri�comptype�fileobjr`rU�pos�closed�zlib�ImportErrorr�crc32�crc�
_init_read_gz�errorr_�_init_write_gzr��dbufZBZ2Decompressor�cmp�OSErrorZ
BZ2Compressor�lzmaZLZMADecompressor�	LZMAErrorZLZMACompressorr�)	r�r�rir�r�r`r�r�r�r5r5r6r�[sl












z_Stream.__init__cCst|d�r|jr|j�dS)Nr�)r�r�r�)r�r5r5r6�__del__�sz_Stream.__del__cCs�|jjd|jj|jj|jjd�|_tjdtt	j	���}|j
d|d�|jjd�rf|jdd
�|_|j
|jj
dd	�t�dS)N�	rz<Ls�s�z.gz�z
iso-8859-1�replace���)r�ZcompressobjZDEFLATED�	MAX_WBITSZ
DEF_MEM_LEVELr�rS�packrE�time�_Stream__writer��endswithr.r0)r�Z	timestampr5r5r6r��sz_Stream._init_write_gzcCsR|jdkr|jj||j�|_|jt|�7_|jdkrD|jj|�}|j|�dS)Nr�r�)	r�r�r�r�r�r/r��compressr�)r�r1r5r5r6r\�s

z
_Stream.writecCsR|j|7_x>t|j�|jkrL|jj|jd|j��|j|jd�|_qWdS)N)rUr/r`r�r\)r�r1r5r5r6Z__write�sz_Stream.__writecCs�|jr
dSd|_z�|jdkr:|jdkr:|j|jj�7_|jdkr�|jr�|jj|j�d|_|jdkr�|jjtj	d|j
��|jjtj	d|jd@��Wd|js�|jj
�XdS)NTr{r�r�r�z<Ll��)r�rir�rUr��flushr�r\rSr�r�r�r�r�)r�r5r5r6r��s
z
_Stream.closecCs�|jj|jj�|_d|_|jd�dkr0td��|jd�dkrFtd��t|jd��}|jd�|d	@r�t|jd��d
t|jd��}|j	|�|d@r�x|jd�}|s�|t
kr�Pq�W|d@r�x|jd�}|s�|t
kr�Pq�W|d@r�|jd�dS)
Nr�r$s�znot a gzip filer#�zunsupported compression method��r@r?rW)r�Z
decompressobjr�r�r��
_Stream__readrr�ordr[r0)r��flagZxlenr1r5r5r6r��s.
 


z_Stream._init_read_gzcCs|jS)N)r�)r�r5r5r6�tell�sz_Stream.tellrcCs\||jdkrNt||j|j�\}}xt|�D]}|j|j�q.W|j|�ntd��|jS)Nrz seeking backwards is not allowed)r�rZr`rDr[r	)r�r�rarbrJr5r5r6�seeksz_Stream.seekNcCsZ|dkr:g}x |j|j�}|s P|j|�qWdj|�}n
|j|�}|jt|�7_|S)Nr�)�_readr`�append�joinr�r/)r�r'�trUr5r5r6r[
s
z_Stream.readcCs�|jdkr|j|�St|j�}|jg}xd||kr�|j|j�}|sBPy|jj|�}Wn|jk
rptd��YnX|j	|�|t|�7}q(Wdj
|�}||d�|_|d|�S)Nr�zinvalid compressed datar�)r�r�r/r�r`r�Z
decompressr_rr�r�)r�r'�cr�rUr5r5r6r�s"





z
_Stream._readcCsnt|j�}|jg}x6||krH|jj|j�}|s0P|j|�|t|�7}qWdj|�}||d�|_|d|�S)Nr�)r/rUr�r[r`r�r�)r�r'r�r�rUr5r5r6Z__read5s



z_Stream.__read)r)N)rrrsrtr�r�r�r\r�r�r�r�r�r[r�r�r5r5r5r6r�PsF
	

r�c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
r�cCs||_|jjt�|_dS)N)r�r[�	BLOCKSIZErU)r�r�r5r5r6r�Ksz_StreamProxy.__init__cCs|jj|_|jS)N)r�r[rU)r�r'r5r5r6r[Os
z_StreamProxy.readcCsP|jjd�rdS|jdd�dkr8|jdd�dkr8d	S|jjd�rHdSd
SdS)Ns�r�rr�sBZhr��
s1AY&SYr��]���7zXZr�r�)r�r�)rU�
startswith)r�r5r5r6r�Ss$z_StreamProxy.getcomptypecCs|jj�dS)N)r�r�)r�r5r5r6r�]sz_StreamProxy.closeN)rrrsrtr�r[r�r�r5r5r5r6r�Fs
r�c@sfeZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Ze	j
fdd�Zddd�Zdd�Z
dd�ZdS)�_FileInFileNcCs�||_||_||_d|_t|dd�|_d|_|dkr>d|fg}d|_g|_d}|j}xT|D]L\}}||kr~|jj	d||df�|jj	d||||f�||7}||}qZW||jkr�|jj	d||jdf�dS)Nrr�FT)
r��offsetr'�positionrmr�r��	map_index�mapr�)r�r�r�r'Z	blockinfoZlastposZrealposr5r5r6r�js(

z_FileInFile.__init__cCsdS)Nr5)r�r5r5r6r��sz_FileInFile.flushcCsdS)NTr5)r�r5r5r6�readable�sz_FileInFile.readablecCsdS)NFr5)r�r5r5r6�writable�sz_FileInFile.writablecCs
|jj�S)N)r��seekable)r�r5r5r6r��sz_FileInFile.seekablecCs|jS)N)r�)r�r5r5r6r��sz_FileInFile.tellcCs�|tjkr tt|d�|j�|_nj|tjkr\|dkrFt|j|d�|_q�t|j||j�|_n.|tjkr�tt|j||j�d�|_ntd��|jS)NrzInvalid argument)	�io�SEEK_SET�min�maxr'r��SEEK_CUR�SEEK_ENDrG)r�r��whencer5r5r6r��s


z_FileInFile.seekc	Cs|dkr|j|j}nt||j|j�}d}x�|dk�rxZ|j|j\}}}}||jkob|knrlPq:|jd7_|jt|j�kr:d|_q:Wt|||j�}|r�|jj||j|�|jj|�}t|�|kr�t	d��||7}n|t
|7}||8}|j|7_q.W|S)Nr�rr#zunexpected end of data)r'r�r�r�r�r/r�r�r[rr0)	r�r'rU�data�start�stopr�r2rcr5r5r6r[�s.

z_FileInFile.readcCs&|jt|��}||dt|��<t|�S)N)r[r/)r�rcrUr5r5r6�readinto�sz_FileInFile.readintocCs
d|_dS)NT)r�)r�r5r5r6r��sz_FileInFile.close)N)N)rrrsrtr�r�r�r�r�r�r�r�r�r[r�r�r5r5r5r6r�ds

r�cseZdZ�fdd�Z�ZS)�ExFileObjectcs&t|j|j|j|j�}t�j|�dS)N)r�r��offset_datar'�sparse�superr�)r��tarfile�tarinfor�)�	__class__r5r6r��s
zExFileObject.__init__)rrrsrtr��
__classcell__r5r5)r�r6r��sr�c@s�eZdZdhZdidd�Zdd�Zdd�Zeee�Zdd�Z	dd�Z
ee	e
�Zd d!�Zd"d#�Z
eed$fd%d&�Zd'd(�Zd)d*�Zd+d,�Zed-d.��Zd/d0�Zed1d2��Zed3d4��Zed5d6��Zed7d8��Zed9d:��Zed;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�Z1dedf�Z2dgS)jrr�rir)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)Ni�rr�)r�rir)r*r'r(r��REGTYPEr�r�r+r,r�r�r�r�r�r�)r�r�r5r5r6r��s"zTarInfo.__init__cCs|jS)N)r�)r�r5r5r6�_getpath�szTarInfo._getpathcCs
||_dS)N)r�)r�r�r5r5r6�_setpathszTarInfo._setpathcCs|jS)N)r�)r�r5r5r6�_getlinkpathszTarInfo._getlinkpathcCs
||_dS)N)r�)r�r�r5r5r6�_setlinkpathszTarInfo._setlinkpathcCsd|jj|jt|�fS)Nz<%s %r at %#x>)r�rrr��id)r�r5r5r6�__repr__szTarInfo.__repr__cCsn|j|jd@|j|j|j|j|j|j|j|j	|j
|j|jd�
}|dt
krj|djd�rj|dd7<|S)Ni�)
r�rir)r*r'r(r�r�r�r+r,r�r�r�r��/)r�rir)r*r'r(r�r�r�r+r,r�r��DIRTYPEr�)r��infor5r5r6�get_infos 
zTarInfo.get_info�surrogateescapecCsT|j�}|tkr|j|||�S|tkr4|j|||�S|tkrH|j||�Std��dS)Nzinvalid format)r�r
�create_ustar_headerr�create_gnu_headerr�create_pax_headerrG)r�rPr3r4r�r5r5r6�tobuf&sz
TarInfo.tobufcCsnt|d<t|dj||��tkr(td��t|dj||��tkr^|j|d||�\|d<|d<|j|t||�S)N�magicr�zlinkname is too longr��prefix)	�POSIX_MAGICr/r.�LENGTH_LINKrG�LENGTH_NAME�_posix_split_name�_create_headerr
)r�r�r3r4r5r5r6r�4szTarInfo.create_ustar_headercCs�t|d<d}t|dj||��tkr<||j|dt||�7}t|dj||��tkrl||j|dt||�7}||j|t	||�S)Nr�r�r�r�)
�	GNU_MAGICr/r.r��_create_gnu_long_header�GNUTYPE_LONGLINKr��GNUTYPE_LONGNAMEr�r)r�r�r3r4rUr5r5r6r�AszTarInfo.create_gnu_headerc
Cs4t|d<|jj�}x�ddtfddtfddfD]h\}}}||kr@q,y||jd	d
�Wn"tk
rv||||<w,YnXt||�|kr,||||<q,WxldD]d\}}||kr�d||<q�||}d|ko�d|dkn�s�t|t	�r�t
|�||<d||<q�W|�r|j|t|�}	nd}	|	|j
|td	d�S)Nr�r�r%r�r&r+� r,rArBr)r?r*r'�r(rr#r�r�)r+r+r�)r,r,r��r)r?�r*r?�r'r�r(r)rrrr)r�r��copyr�r�r.�UnicodeEncodeErrorr/�
isinstance�float�str�_create_pax_generic_header�XHDTYPEr�r
)
r�r�r3r�r�Zhnamer2rO�valrUr5r5r6r�Os4
.zTarInfo.create_pax_headercCs|j|td�S)Nzutf-8)r
�XGLTYPE)�clsr�r5r5r6�create_pax_global_header�sz TarInfo.create_pax_global_headercCs�|jd�}xltdt|��D]R}dj|d|��}dj||d��}t|j||��tkrt|j||��tkrPqWtd��||fS)Nr�r#zname is too long)�splitrDr/r�r.�
LENGTH_PREFIXr�rG)r�r�r3r4Z
componentsrJr�r5r5r6r��s
zTarInfo._posix_split_namecCsVt|jdd�d||�t|jdd�d@d|�t|jdd�d|�t|jd	d�d|�t|jd
d�d|�t|jdd�d|�d
|jdt�t|jdd�d||�|jdt�t|jdd�d||�t|jdd�d||�t|jdd�d|�t|jdd�d|�t|jdd�d||�g}tjdtdj|��}t	|td��d}|dd�t
d|d�|dd�}|S) Nr�r�rriri�r?r)r*r'rr(s        r�r�r�r+r�r,r�r�r�rz%dsr�ilz%06orAiei����i����)r7�getrQr�r�rSr�r�r�rVrL)r�rPr3r4�partsrUr�r5r5r6r��s&

&zTarInfo._create_headercCs.tt|�t�\}}|dkr*|t|t7}|S)Nr)rZr/r�r0)Zpayloadrarbr5r5r6�_create_payload�szTarInfo._create_payloadcCsR|j||�t}i}d|d<||d<t|�|d<t|d<|j|t||�|j|�S)Nz
././@LongLinkr�r�r'r�)r.r0r/r�r�r
r)rr�r�r3r4r�r5r5r6r��szTarInfo._create_gnu_long_headercCs:d}x@|j�D]4\}}y|jdd�Wqtk
r@d}PYqXqWd}|rV|d7}x�|j�D]�\}}|jd�}|r�|j|d�}n
|jd�}t|�t|�d}d	}	}
x"|tt|
��}	|	|
kr�P|	}
q�W|tt|
�d
�d|d|d
7}q`Wi}d|d<||d<t|�|d<t|d<|j|td
d�|j	|�S)NFzutf-8rBTr�s21 hdrcharset=BINARY
r�r�rrA� �=�
z././@PaxHeaderr�r�r'r�r�)
�itemsr.rr/r	rLr�r�r
r)rr�r�r3Zbinary�keyword�valueZrecords�lrIr;r�r5r5r6r
�s<

*z"TarInfo._create_pax_generic_headercCstt|�dkrtd��t|�tkr(td��|jt�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�|jjd��r�t|_|jtk�r6d}g}xrtd�D]f}	y0t|||d��}
t||d|d��}Wntk
�r�PYnX|j|
|f�|d7}�q�Wt|d�}t|dd��}
|||
f|_ |j!��rN|jj"d�|_|�rp|jt#k�rp|d|j|_|S)Nrzempty headerztruncated headerzend of file header��zbad checksumr�l�t�|��ii	i)iIiQiYi�r�i�r�r�i�i�i�)$r/rur�rv�countr0rwrKrVrHr<r�rir)r*r'r(r�r�r�r+r,r�r��AREGTYPEr�r��GNUTYPE_SPARSErDrGr��boolr��isdir�rstrip�	GNU_TYPES)rrUr3r4r��objr�r��structsrJr��numbytes�
isextended�origsizer5r5r6�frombufsZ
zTarInfo.frombufcCs8|jjt�}|j||j|j�}|jj�t|_|j|�S)N)	r�r[r�r0r3r4r�r��_proc_member)rr�rUr+r5r5r6�fromtarfile?szTarInfo.fromtarfilecCsT|jttfkr|j|�S|jtkr,|j|�S|jtttfkrF|j	|�S|j
|�SdS)N)r�r�r��
_proc_gnulongr&�_proc_sparserr
�SOLARIS_XHDTYPE�	_proc_pax�
_proc_builtin)r�r�r5r5r6r1Ts



zTarInfo._proc_membercCsR|jj�|_|j}|j�s$|jtkr4||j|j�7}||_|j	|j
|j|j�|S)N)
r�r�r��isregr��SUPPORTED_TYPES�_blockr'r��_apply_pax_infor�r3r4)r�r�r�r5r5r6r7aszTarInfo._proc_builtincCs�|jj|j|j��}y|j|�}Wntk
r>td��YnX|j|_|jt	krft
||j|j�|_
n|jtkr�t
||j|j�|_|S)Nz missing or bad subsequent header)r�r[r:r'r2rrxr�r�r�r<r3r4r�r�r�)r�r�rU�nextr5r5r6r3rs

zTarInfo._proc_gnulongc
Cs�|j\}}}|`x�|r�|jjt�}d}xvtd�D]j}y0t|||d��}t||d|d��}	Wntk
rzPYnX|r�|	r�|j||	f�|d7}q0Wt|d�}qW||_	|jj
�|_|j|j|j
�|_||_
|S)Nr�rr#i�)r�r�r[r�rDrKrGr�r'r�r�r�r:r'r�)
r�r�r,r.r/rUr�rJr�r-r5r5r6r4�s(zTarInfo._proc_sparsecCs0|jj|j|j��}|jtkr&|j}n
|jj�}tj	d|�}|dk	rX|j
d�jd�|d<|jd�}|dkrr|j
}nd}tjd�}d}x�|j||�}|s�P|j�\}	}
t|	�}	|	dkr�td��||jd	�d|jd�|	d�}|j|
dd|j�}
|
tk�r|j|||j
|j�}n|j|dd|j�}|||
<||	7}q�Wy|j|�}Wntk
�rdtd
��YnXd|k�r~|j||�nHd|k�r�|j|||�n.|jd
�dk�r�|jd�dk�r�|j|||�|jttfk�r,|j ||j
|j�|j!|_!d|k�r,|j"}
|j#��s|jt$k�r&|
|j|j�7}
|
|_!|S)Ns\d+ hdrcharset=([^\n]+)\nr#zutf-8�
hdrcharsetZBINARYs(\d+) ([^=]+)=rzinvalid headerr$z missing or bad subsequent headerzGNU.sparse.mapzGNU.sparse.sizezGNU.sparse.major�1zGNU.sparse.minorrCr')%r�r[r:r'r�r
r�r�re�search�groupr:rr3�compile�match�groupsrErHrlr��_decode_pax_fieldr4�PAX_NAME_FIELDSr2rrx�_proc_gnusparse_01�_proc_gnusparse_00�_proc_gnusparse_10rr5r;r�r�r8r9)r�r�rUr�rDr>r3Zregexr�r2rrr<r�r5r5r6r6�sd



$	





 
zTarInfo._proc_paxcCspg}x(tjd|�D]}|jt|jd���qWg}x(tjd|�D]}|jt|jd���q@Wtt||��|_dS)Ns\d+ GNU.sparse.offset=(\d+)\nr#s\d+ GNU.sparse.numbytes=(\d+)\n)r@�finditerr�rErB�list�zipr�)r�r<r�rUZoffsetsrDr-r5r5r6rIszTarInfo._proc_gnusparse_00cCs@dd�|djd�D�}tt|ddd�|ddd���|_dS)NcSsg|]}t|��qSr5)rE)�.0�xr5r5r6�
<listcomp>sz.TarInfo._proc_gnusparse_01.<locals>.<listcomp>zGNU.sparse.map�,r$r#)rrLrMr�)r�r<r�r�r5r5r6rHszTarInfo._proc_gnusparse_01cCs�d}g}|jjt�}|jdd�\}}t|�}xJt|�|dkrvd|krV||jjt�7}|jdd�\}}|jt|��q.W|jj�|_t	t
|ddd�|ddd���|_dS)Nrr#r$)r�r[r�rrEr/r�r�r�rLrMr�)r�r<r�r�Zfieldsr�rUZnumberr5r5r6rJszTarInfo._proc_gnusparse_10c
Cs�x�|j�D]�\}}|dkr(t|d|�q
|dkrBt|dt|��q
|dkr\t|dt|��q
|tkr
|tkr�yt||�}Wntk
r�d}YnX|dkr�|jd�}t|||�q
W|j�|_dS)NzGNU.sparse.namer%zGNU.sparse.sizer'zGNU.sparse.realsizerr�)	r�setattrrE�
PAX_FIELDS�PAX_NUMBER_FIELDSrGr)rr�)r�r�r3r4rrr5r5r6r;-s"

zTarInfo._apply_pax_infocCs.y|j|d�Stk
r(|j||�SXdS)NrB)r:�UnicodeDecodeError)r�rr3Zfallback_encodingZfallback_errorsr5r5r6rFDszTarInfo._decode_pax_fieldcCs"t|t�\}}|r|d7}|tS)Nr#)rZr�)r�r$rarbr5r5r6r:LszTarInfo._blockcCs
|jtkS)N)r��
REGULAR_TYPES)r�r5r5r6r8Usz
TarInfo.isregcCs|j�S)N)r8)r�r5r5r6�isfileWszTarInfo.isfilecCs
|jtkS)N)r�r�)r�r5r5r6r(Ysz
TarInfo.isdircCs
|jtkS)N)r��SYMTYPE)r�r5r5r6�issym[sz
TarInfo.issymcCs
|jtkS)N)r��LNKTYPE)r�r5r5r6�islnk]sz
TarInfo.islnkcCs
|jtkS)N)r��CHRTYPE)r�r5r5r6�ischr_sz
TarInfo.ischrcCs
|jtkS)N)r��BLKTYPE)r�r5r5r6�isblkasz
TarInfo.isblkcCs
|jtkS)N)r��FIFOTYPE)r�r5r5r6�isfifocszTarInfo.isfifocCs
|jdk	S)N)r�)r�r5r5r6�issparseeszTarInfo.issparsecCs|jtttfkS)N)r�r\r^r`)r�r5r5r6�isdevgsz
TarInfo.isdevN)r�rir)r*r'r(r�r�r�r+r,r�r�r�r�r�r�r�r�r�)r�)3rrrsrt�	__slots__r�r�r��propertyr%r�r�r&r�r�rrr�r�r�r��classmethodrr��staticmethodr�rr�r
r0r2r1r7r3r4r6rIrHrJr;rFr:r8rWr(rYr[r]r_rarbrcr5r5r5r6r�s^



1
3?
h	c
@s�eZdZdZdZdZdZeZe	Z
dZeZ
eZd[dd�Zedddefd	d
��Zed\dd��Zed]dd��Zed^dd��Zed_dd��Zddddd�Zdd�Zdd�Zdd�Zdd �Zd`d!d"�Zdadd$�d%d&�Zdbdd'�d(d)�Zdcd*d+�Z dddd-�d.d/�Z!dedd-�d1d2�Z"d3d4�Z#dfd5d6�Z$d7d8�Z%d9d:�Z&d;d<�Z'd=d>�Z(d?d@�Z)dAdB�Z*dCdD�Z+dEdF�Z,dGdH�Z-dIdJ�Z.dgdKdL�Z/dMdN�Z0dhdOdP�Z1dQdR�Z2dSdT�Z3dUdV�Z4dWdX�Z5dYdZ�Z6dS)irrFr#Nrzr�cCs�ddddd�}||krtd��||_|||_|sj|jdkrVtjj|�rVd|_d|_t||j�}d	|_n@|dkr�t|d
�r�t	|j
ttf�r�|j
}t|d�r�|j|_d|_|r�tjj
|�nd|_
||_|dk	r�||_|dk	r�||_|dk	r�||_|dk	�r||_|dk	�r||_|	|_|
dk	�r4|jtk�r4|
|_ni|_|dk	�rJ||_|dk	�rZ||_|
|_d	|_g|_d	|_|jj�|_i|_�y�|jd
k�r�d|_ |j!�|_ |jdk�r8x�|jj"|j�y|jj#|�}|jj$|�WnTt%k
�r|jj"|j�PYn0t&k
�r0}zt't|���WYdd}~XnX�q�W|jdk�r�d|_|j�r�|jj(|jj)��}|jj*|�|jt+|�7_Wn&|j�s�|jj,�d|_�YnXdS)N�rbzr+b�wbZxb)rz�ar{rOz!mode must be 'r', 'a', 'w' or 'x'rjr{Fr�riTrzrO)rjr{rO)-rGri�_moder}r%�exists�	bltn_openr�r�rr�r	rL�abspathr�rPr��dereference�ignore_zerosr3r4rr��debug�
errorlevel�copybufsizer��members�_loadedr�r��inodes�firstmemberr<r�r2r�rwrrrrr\r/r�)r�r�rir�rPr�rorpr3r4r�rqrrrsZmodes�erUr5r5r6r��s�






$
zTarFile.__init__c

s�|r|rtd��|dkr��fdd�}xtt�j|d�D]b}t��j|�}|dk	r\|j�}	y||d|f|�Sttfk
r�|dk	r�|j|	�w8Yq8Xq8Wtd���nd|k�r|jdd	�\}
}|
p�d}
|p�d
}|�jkr�t��j|�}ntd|��|||
|f|�Sd|k�r�|jdd	�\}
}|
�p.d}
|�p8d
}|
dk�rLtd��t	||
|||�}y�||
|f|�}Wn|j
��YnXd|_|S|dk�r��j|||f|�Std��dS)Nznothing to openrz�r:*cs�j|dkS)N�taropen)�	OPEN_METH)r�)rr5r6�not_compressedsz$TarFile.open.<locals>.not_compressed)�keyz%file could not be opened successfully�:r#r�zunknown compression type %r�|r{zmode must be 'r' or 'w'FrjrOzundiscernible mode)rzry)rzr{)rjr{rO)
rG�sortedr{rmr�rrr�rr�r�r�rz)
rr�rir�r`�kwargsr|r��funcZ	saved_posrh�streamr�r5)rr6r�sP%







zTarFile.opencKs |dkrtd��||||f|�S)Nrzrjr{rOz!mode must be 'r', 'a', 'w' or 'x')rzrjr{rO)rG)rr�rir�r�r5r5r6rzOszTarFile.taropenr�cKs�|d
krtd��yddl}|jWn ttfk
rBtd��YnXy|j||d||�}Wn.tk
r�|dk	r�|dkr�td���YnXy|j|||f|�}WnBtk
r�|j	�|dkr�td���Yn|j	��YnXd	|_
|S)Nrzr{rOzmode must be 'r', 'w' or 'x'rzgzip module is not availablercznot a gzip fileF)rzr{rO)rG�gzipZGzipFiler��AttributeErrorrr�rrzr�r�)rr�rir��
compresslevelr�r�r�r5r5r6�gzopenWs2
zTarFile.gzopencKs�|d
krtd��yddl}Wntk
r8td��YnX|j|pD|||d�}y|j|||f|�}WnFttfk
r�|j�|dkr�t	d���Yn|j��YnXd	|_
|S)Nrzr{rOzmode must be 'r', 'w' or 'x'rzbz2 module is not available)r�znot a bzip2 fileF)rzr{rO)rGr�r�rZBZ2Filerzr��EOFErrorr�rr�)rr�rir�r�r�r�r�r5r5r6�bz2openys(zTarFile.bz2opencKs�|d
krtd��yddl}Wntk
r8td��YnX|j|pD|||d�}y|j|||f|�}WnH|jtfk
r�|j�|dkr�t	d���Yn|j��YnXd	|_
|S)Nrzr{rOzmode must be 'r', 'w' or 'x'rzlzma module is not available)�presetznot an lzma fileF)rzr{rO)rGr�r�rZLZMAFilerzr�r�r�rr�)rr�rir�r�r�r�r�r5r5r6�xzopen�s&zTarFile.xzopenrzr�r�r�)r�r�r�r�c
Cs�|jr
dSd|_z`|jdkrn|jjttd�|jtd7_t|jt�\}}|dkrn|jjtt|�Wd|j	s�|jj
�XdS)NTrjr{rOr$r)rjr{rO)r�rir�r\r0r�r�rZ�
RECORDSIZEr�r�)r�rarbr5r5r6r��s
z
TarFile.closecCs"|j|�}|dkrtd|��|S)Nzfilename %r not found)�
_getmember�KeyError)r�r�r�r5r5r6�	getmember�s
zTarFile.getmembercCs|j�|js|j�|jS)N)�_checkru�_loadrt)r�r5r5r6�
getmembers�szTarFile.getmemberscCsdd�|j�D�S)NcSsg|]
}|j�qSr5)r�)rNr�r5r5r6rP�sz$TarFile.getnames.<locals>.<listcomp>)r�)r�r5r5r6�getnames�szTarFile.getnamescCsp|jd�|dk	r|j}|dkr$|}tjj|�\}}|jtjd�}|jd�}|j�}||_	|dkr�t
td�r�|jr�tj|�}q�tj
|�}ntj|j��}d}|j}t
j|��r|j|jf}	|jr�|jdkr�|	|jkr�||j|	kr�t}
|j|	}nt}
|	d�rx||j|	<nht
j|��r"t}
nVt
j|��r4t}
nDt
j|��rPt}
tj|�}n(t
j|��rbt }
nt
j!|��rtt"}
ndS||_||_#|j$|_%|j&|_'|
tk�r�|j(|_)nd|_)|j*|_+|
|_,||_-t.�r�yt.j/|j%�d|_0Wnt1k
�r�YnXt2�r*yt2j3|j'�d|_4Wnt1k
�r(YnX|
t t"fk�rlt
td��rlt
td��rltj5|j6�|_7tj8|j6�|_9|S)	N�awxr��lstatr�r#r�major�minor):r�r�r}r%�
splitdriver��sep�lstripr�r�r�ror�rg�fstat�fileno�st_mode�S_ISREG�st_ino�st_dev�st_nlinkrvrZr��S_ISDIRr��S_ISFIFOr`�S_ISLNKrX�readlink�S_ISCHRr\�S_ISBLKr^ri�st_uidr)�st_gidr*�st_sizer'�st_mtimer(r�r��pwd�getpwuidr+r��grpZgetgrgidr,r��st_rdevr�r�r�)r�r��arcnamer�Zdrvr�Zstatresr�Zstmd�inoder�r5r5r6�
gettarinfo�s~	




zTarFile.gettarinfoT)rtcCs�|j�|dkr|}x�|D]�}|r�ttj|j��td|jp@|j|jpJ|jf�|j	�sb|j
�r|tdd|j|jf�ntd|j
�tdtj|j�dd��t|j|j�r�dnd�|r�|j�r�td	|j�|j�r�td
|j�t�qWdS)Nz%s/%sz%10sz%d,%dz%10dz%d-%02d-%02d %02d:%02d:%02dr�r�r�z-> zlink to )r�rqrgrhrir+r)r,r*r]r_r�r�r'r�Z	localtimer(r�r(rYr�r[rp)r��verbosertr�r5r5r6rLQs*
zTarFile.list)�filterc	
Csv|jd�|dkr|}|dk	rPddl}|jdtd�||�rP|jdd|�dS|jdk	r�tjj|�|jkr�|jdd|�dS|jd|�|j	||�}|dkr�|jdd|�dS|dk	r�||�}|dkr�|jdd|�dS|j
��rt|d	��}|j||�WdQRXnd|j
��rh|j|�|�rrxHtj|�D].}|jtjj||�tjj||�|||d
��q4Wn
|j|�dS)Nr�rzuse the filter argument insteadr$ztarfile: Excluded %rztarfile: Skipped %rr#ztarfile: Unsupported type %rrh)r�)r�rdrerf�_dbgr�r}r%rnr�r8rm�addfiler(�listdir�addr�)	r�r�r��	recursiveZexcluder�rdr��fr5r5r6r�qsB



zTarFile.addcCs�|jd�tj|�}|j|j|j|j�}|jj|�|jt	|�7_|j
}|dk	r�t||j|j|d�t
|jt�\}}|dkr�|jjtt|�|d7}|j|t7_|jj|�dS)Nr�)r`rr#)r�rr�rPr3r4r�r\r�r/rsrYr'rZr�r0rtr�)r�r�r�rUr`rarbr5r5r6r��s

zTarFile.addfile�.)�
numeric_ownercCsg}|dkr|}xF|D]>}|j�r<|j|�tj|�}d|_|j|||j�|d�qW|jdd�d�|j�x�|D]�}tjj	||j
�}y,|j|||d�|j||�|j
||�Wqvtk
r�}z$|jdkrւn|jdd|�WYdd}~XqvXqvWdS)	Ni�)�	set_attrsr�cSs|jS)N)r�)rjr5r5r6�<lambda>�sz$TarFile.extractall.<locals>.<lambda>)r})r�r#ztarfile: %s)r(r�rri�extract�sort�reverser}r%r�r��chown�utime�chmodr
rrr�)r�r%rtr�Zdirectoriesr��dirpathrxr5r5r6�
extractall�s,




zTarFile.extractallr�cCs|jd�t|t�r |j|�}n|}|j�r>tjj||j�|_	y"|j
|tjj||j�||d�Wn�tk
r�}zJ|j
dkr��n6|jdkr�|jdd|j�n|jdd|j|jf�WYdd}~XnBtk
�r}z$|j
dkr�n|jdd|�WYdd}~XnXdS)Nrz)r�r�rr#ztarfile: %sztarfile: %s %r)r�rr	r�r[r}r%r�r�r��_extract_memberr�r�rr�filenamer��strerrorr
)r��memberr%r�r�r�rxr5r5r6r��s(	



(
zTarFile.extractcCs�|jd�t|t�r |j|�}n|}|j�s6|jtkrB|j||�S|j�sR|j	�rzt|j
t�rhtd��q~|j
|j|��SndSdS)Nrzz'cannot extract (sym)link as file object)r�rr	r�r8r�r9�
fileobjectr[rYr�r�r	�extractfile�_find_link_target)r�r�r�r5r5r6r�s


zTarFile.extractfilecCsV|jd�}|jdtj�}tjj|�}|r@tjj|�r@tj|�|j�sP|j	�rj|j
dd|j|jf�n|j
d|j�|j
�r�|j||�n�|j�r�|j||�nx|j�r�|j||�nb|j�s�|j�r�|j||�nD|j�s�|j	�r�|j||�n&|jtk�r|j||�n|j||�|�rR|j|||�|j	��sR|j||�|j||�dS)Nr�r#z%s -> %s)r)r�r}r�r%�dirnamerl�makedirsr[rYr�r�r�r8�makefiler(�makedirra�makefifor]r_�makedev�makelinkr�r9�makeunknownr�r�r�)r�r��
targetpathr�r�Z	upperdirsr5r5r6r�4s4


zTarFile._extract_membercCs*ytj|d�Wntk
r$YnXdS)Ni�)r}�mkdir�FileExistsError)r�r�r�r5r5r6r�eszTarFile.makedircCs�|j}|j|j�|j}t|d��f}|jdk	rrx,|jD]"\}}|j|�t|||t|�q6W|j|j�|j	�nt|||jt|�WdQRXdS)Nri)
r�r�r�rsrmr�rYrr'�truncate)r�r�r��sourcer`�targetr�r'r5r5r6r�os


zTarFile.makefilecCs"|j||�|jdd|j�dS)Nr#z9tarfile: Unknown file type %r, extracted as regular file.)r�r�r�)r�r�r�r5r5r6r�szTarFile.makeunknowncCs"ttd�rtj|�ntd��dS)N�mkfifozfifo not supported by system)r�r}r�r
)r�r�r�r5r5r6r��s
zTarFile.makefifocCsbttd�sttd�r td��|j}|j�r:|tjO}n
|tjO}tj||tj	|j
|j��dS)N�mknodr�z'special devices not supported by system)r�r}r
rir_rg�S_IFBLK�S_IFCHRr�r�r�r�)r�r�r�rir5r5r6r��s
zTarFile.makedevcCs�yL|j�rtj|j|�n0tjj|j�r8tj|j|�n|j|j	|�|�WnHt
k
r�y|j|j	|�|�Wntk
r�td��YnXYnXdS)Nz%unable to resolve link inside archive)
rYr}�symlinkr�r%rlr��linkr�r��symlink_exceptionr�r
)r�r�r�r5r5r6r��s

zTarFile.makelinkcCs�ttd�r�tj�dkr�|j}|j}|s�ytr<tj|j�d}Wntk
rRYnXyt	rjt	j
|j�d}Wntk
r�YnXy4|j�r�ttd�r�tj
|||�ntj|||�Wntk
r�td��YnXdS)N�geteuidrr$�lchownzcould not change owner)r�r}r�r*r)r�Zgetgrnamr,r�r��getpwnamr+rYr�r�r�r
)r�r�r�r��g�ur5r5r6r��s(z
TarFile.chowncCs>ttd�r:ytj||j�Wntk
r8td��YnXdS)Nr�zcould not change mode)r�r}r�rir�r
)r�r�r�r5r5r6r��s

z
TarFile.chmodcCsHttd�sdSytj||j|jf�Wntk
rBtd��YnXdS)Nr�z"could not change modification time)r�r}r�r(r�r
)r�r�r�r5r5r6r��s
z
TarFile.utimecCs�|jd�|jdk	r$|j}d|_|S|j|jj�krZ|jj|jd�|jjd�sZtd��d}�xby|jj	|�}W�nHt
k
r�}z2|jr�|jdd|j|f�|jt
7_wbWYdd}~Xn�tk
�r,}zN|j�r|jdd|j|f�|jt
7_wbn|jdk�rtt|���WYdd}~Xn�tk
�rT|jdk�rPtd��Ynjtk
�r�}z|jdk�r~tt|���WYdd}~Xn0tk
�r�}ztt|���WYdd}~XnXPqbW|dk	�r�|jj|�nd|_|S)	NZrar#zunexpected end of datar$z0x%X: %srz
empty fileT)r�rwr�r�r�r�r[rr�r2rwrpr�r�rHr	rurvrxrtr�ru)r��mr�rxr5r5r6r<�sL


zTarFile.nextcCsn|j�}|dk	r"|d|j|��}|r2tjj|�}x6t|�D]*}|rTtjj|j�}n|j}||kr<|Sq<WdS)N)r��indexr}r%�normpath�reversedr�)r�r�r��	normalizertr��member_namer5r5r6r�	szTarFile._getmembercCs"x|j�}|dkrPqWd|_dS)NT)r<ru)r�r�r5r5r6r�3	s
z
TarFile._loadcCs:|jrtd|jj��|dk	r6|j|kr6td|j��dS)Nz%s is closedzbad operation for mode %r)r�r�r�rrri)r�rir5r5r6r�=	szTarFile._checkcCs`|j�r.djtdtjj|j�|jf��}d}n
|j}|}|j||dd�}|dkr\t	d|��|S)Nr�T)r�r�zlinkname %r not found)
rYr�r�r}r%r�r�r�r�r�)r�r�r��limitr�r5r5r6r�F	s zTarFile._find_link_targetccs�|jr|jEdHdSd}|jdk	r:|j�}|d7}|VxN|t|j�krV|j|}n"|jst|j�}|sxd|_dSndS|d7}|Vq<WdS)Nrr#T)rurtrwr<r/)r�r�r�r5r5r6�__iter__Y	s&
zTarFile.__iter__cCs||jkrt|tjd�dS)N)�file)rqrprn�stderr)r��level�msgr5r5r6r�x	s
zTarFile._dbgcCs|j�|S)N)r�)r�r5r5r6�	__enter__~	szTarFile.__enter__cCs,|dkr|j�n|js"|jj�d|_dS)NT)r�r�r�r�)r�r�r�	tracebackr5r5r6�__exit__�	s


zTarFile.__exit__)
NrzNNNNNNr�NNNN)rzN)rzNr�)rzNr�)rzNN)NNN)T)NTN)N)r�N)r�T)TF)NF)N)7rrrsrtrqrorprrrrPrr3r4rr�r�r�r�rfr�rrzr�r�r�r{r�r�r�r�r�rLr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r<r�r�r�r�r�r�r�r�r5r5r5r6rkst
lZ!

d =
(&
0
	6


	cCs.yt|�}|j�dStk
r(dSXdS)NTF)rr�r)r�r�r5r5r6r�	scCs�ddl}d}|j|d�}|jdddddd	�|j�}|jd
ddd
d�|jdddd0dd�|jdddd1dd�|jddddd�|j�}|j�r�|j}t|�r�t|d�� }|j�t	|j�t
jd�WdQRX|jr�t	dj
|��n|jd d!j
|���n�|j�rP|j}t|��r:tj|d"��}|j|jd#�WdQRXn|jd d!j
|���n�|j�rt|j�d k�rz|jd}tj}n,t|j�d$k�r�|j\}}n|jd |j��t|��rtj|d"��}|j|d%�WdQRX|j�r|d&k�r�d'j
|�}	nd(j
||�}	t	|	�n|jd d!j
|��n�|j�r�|jjd�}
tjj|
�\}}d)d)d*d*d+d+d+d+d,�}
||
k�rld-|
|nd.}|j}tj|
|�� }x|D]}|j|��q�WWdQRX|j�r�t	d/j
|
��n|jd |j��dS)2Nrz3A simple command line interface for tarfile module.)�descriptionz-vz	--verbose�
store_trueFzVerbose output)�action�default�helpz-lz--list�	<tarfile>zShow listing of a tarfile)�metavarr�z-ez	--extract�+�<output_dir>zExtract tarfile into target dir)�nargsr�r�z-cz--create�<name>�<file>zCreate tarfile from sourcesz-tz--testzTest if a tarfile is validrz)r�z{!r} is a tar archive.r#z{!r} is not a tar archive.
zr:*)r�r$)r%r�z{!r} file is extracted.z+{!r} file is extracted into {!r} directory.r�r�r�)z.gzz.tgzz.xzz.txzz.bz2z.tbzz.tbz2z.tb2zw:r{z{!r} file created.)r�r�)rr)�argparse�ArgumentParser�add_argument�add_mutually_exclusive_group�
parse_argsZtestrrr�rprnr�r�rP�exitrLrr�r/r}�curdir�format_helpr�Zcreate�popr%�splitextr�)rr��parserrB�argsr]r�Ztfr	r�Ztar_name�_ZextZcompressionsZtar_modeZ	tar_files�	file_namer5r5r6�main�	s�









r�__main__)r%r&r'r(r)r*r+r,)`�version�
__author__Z__date__Z	__cvsid__�__credits__�builtinsrrmrnr}r�rXrgr�rSrr@r�r�r�r��NotImplementedErrorr�r��	NameError�__all__r0r�r�r�r�r�r�rr�r%rZrXr\r^r�r`ZCONTTYPEr�r�r&rr
r5r
rrrr9rVr*rSrGrrErTr�r�getfilesystemencodingr7r<rKrQrVrYrhrq�	Exceptionrr
rrr	rrurvrwrHrxryr��objectr�r��BufferedReaderr�rrrrrrr5r5r5r6�<module> s�



wh,Z


?>