AlkantarClanX12

Your IP : 3.145.39.176


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/lzma.cpython-35.opt-2.pyc



���]}2�$@sKdddddddddd	d
ddd
ddddddddddddddddddd d!d"d#g$Zd$d%lZd$d%lZd$d&lTd$d'lmZmZd$d%lZd$Zd(Zd)Z	Gd*d�dej
�Zd+d,d%d-d6d.d%d/d%d0d%d1d%d2d%d3d �Ze
d7d%d%d4d!�Zed%d%d5d"�Zd%S)8�
CHECK_NONE�CHECK_CRC32�CHECK_CRC64�CHECK_SHA256�CHECK_ID_MAX�
CHECK_UNKNOWN�FILTER_LZMA1�FILTER_LZMA2�FILTER_DELTA�
FILTER_X86�FILTER_IA64�
FILTER_ARM�FILTER_ARMTHUMB�FILTER_POWERPC�FILTER_SPARC�FORMAT_AUTO�	FORMAT_XZ�FORMAT_ALONE�
FORMAT_RAW�MF_HC3�MF_HC4�MF_BT2�MF_BT3�MF_BT4�	MODE_FAST�MODE_NORMAL�PRESET_DEFAULT�PRESET_EXTREME�LZMACompressor�LZMADecompressor�LZMAFile�	LZMAError�open�compress�
decompress�is_check_supported�N)�*)�_encode_filter_properties�_decode_filter_properties��c@s�eZdZdddddd$dddddd	�Zd
d�Zedd
��Zdd�Zdd�Zdd�Z	dd�Z
d%dd�Zd&dd�Zd'dd�Z
d(dd�Zdd�Zejd d!�Zd"d#�ZdS))rN�r�format�checkr)�preset�filtersc		Cs�d|_d|_t|_|dkrr|dkr?td��|dk	rWtd��|dkrit}t}ni|dkr�|dkr�t}t}t	d
|d|d|d|�|_
d|_ntdj|���t
|ttf�r0d|kr|d7}tj||�|_d|_||_n?t|d�sNt|d�rc||_||_ntd��|jtkr�tj|jtdtd
|d|�}tj|�|_dS)NFr+�rbr)zACannot specify an integrity check when opening a file for readingzICannot specify a preset compression level when opening a file for reading�w�wb�a�ab�x�xbr,r-r.r/r%zInvalid mode: {!r}�bT�read�writez1filename must be a str or bytes object, or a file�trailing_error)r+r0���)r1r2r3r4r5r6)�_fp�_closefp�_MODE_CLOSED�_mode�
ValueErrorr�
_MODE_READr�_MODE_WRITEr�_compressor�_posr,�
isinstance�str�bytes�builtinsr!�hasattr�	TypeError�_compression�DecompressReaderrr �io�BufferedReader�_buffer)	�self�filename�moder,r-r.r/�	mode_code�raw�rU�)/opt/alt/python35/lib64/python3.5/lzma.py�__init__0sB+				
		zLZMAFile.__init__cCs�|jtkrdSz]|jtkr>|jj�d|_n1|jtkro|jj|jj	��d|_Wdz|j
r�|jj�Wdd|_d|_
t|_XXdS)NF)r?r>rArO�closerBr<r9rC�flushr=)rPrUrUrVrX�s

			zLZMAFile.closecCs
|jtkS)N)r?r>)rPrUrUrV�closed�szLZMAFile.closedcCs|j�|jj�S)N)�_check_not_closedr<�fileno)rPrUrUrVr\�s
zLZMAFile.filenocCs|j�o|jj�S)N)�readablerO�seekable)rPrUrUrVr^�szLZMAFile.seekablecCs|j�|jtkS)N)r[r?rA)rPrUrUrVr]�s
zLZMAFile.readablecCs|j�|jtkS)N)r[r?rB)rPrUrUrV�writable�s
zLZMAFile.writablecCs|j�|jj|�S)N)�_check_can_readrO�peek)rP�sizerUrUrVra�s
z
LZMAFile.peekcCs|j�|jj|�S)N)r`rOr8)rPrbrUrUrVr8�s
z
LZMAFile.readcCs/|j�|dkrtj}|jj|�S)Nr%)r`rM�DEFAULT_BUFFER_SIZErO�read1)rPrbrUrUrVrd�s
	zLZMAFile.read1cCs|j�|jj|�S)N)r`rO�readline)rPrbrUrUrVre�s
zLZMAFile.readlinecCsK|j�|jj|�}|jj|�|jt|�7_t|�S)N)�_check_can_writerCr"r<r9rD�len)rP�data�
compressedrUrUrVr9�s

zLZMAFile.writecCs|j�|jj||�S)N)�_check_can_seekrO�seek)rP�offset�whencerUrUrVrk�s
z
LZMAFile.seekcCs-|j�|jtkr&|jj�S|jS)N)r[r?rArO�tellrD)rPrUrUrVrn�s

z
LZMAFile.tellr;r;r;r;r;)�__name__�
__module__�__qualname__rWrX�propertyrZr\r^r]r_rar8rdrer9rM�SEEK_SETrkrnrUrUrUrVr%s	!S	

r0r,r-r.r/�encoding�errors�newlinecCs�d|kr.d|krvtd|f��nH|dk	rFtd��|dk	r^td��|dk	rvtd��|jdd�}	t||	d|d	|d
|d|�}
d|kr�tj|
|||�S|
SdS)N�tr7zInvalid mode: %rz0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary mode�r,r-r.r/)r@�replacerrM�
TextIOWrapper)rQrRr,r-r.r/rtrurv�lz_mode�binary_filerUrUrVr!scCs,t||||�}|j|�|j�S)N)rr"rY)rhr,r-r.r/�comprUrUrVr"4scCs�g}x}t|||�}y|j|�}Wntk
rO|rHPn�YnX|j|�|jsrtd��|j}|s	Pq	Wdj|�S)NzACompressed data ended before the end-of-stream marker was reached�)rr#r �append�eof�unused_data�join)rhr,�memlimitr/�results�decomp�resrUrUrVr#@s 

		r;r;)�__all__rHrM�_lzmar'r(rKr>rArB�
BaseStreamrr!rr"rr#rUrUrUrV�<module>s,
�-