Hacked By AnonymousFox

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

3

��2a�2�$@s�dddddddddd	d
ddd
ddddddddddddddddddd d!d"d#g$Zd$d%lZd$d%lZd$d%lZd$d&lTd$d'lmZmZd$d%lZd$Zd(Z	d)Z
Gd*d�dej�Zd0d%d1d%d%d%d%d%d,�d-d �Z
ed2d%d%fd.d!�Zed%d%fd/d"�Zd%S)3Z
CHECK_NONEZCHECK_CRC32ZCHECK_CRC64ZCHECK_SHA256ZCHECK_ID_MAXZ
CHECK_UNKNOWNZFILTER_LZMA1ZFILTER_LZMA2ZFILTER_DELTAZ
FILTER_X86ZFILTER_IA64Z
FILTER_ARMZFILTER_ARMTHUMBZFILTER_POWERPCZFILTER_SPARC�FORMAT_AUTO�	FORMAT_XZZFORMAT_ALONEZ
FORMAT_RAWZMF_HC3ZMF_HC4ZMF_BT2ZMF_BT3ZMF_BT4Z	MODE_FASTZMODE_NORMALZPRESET_DEFAULTZPRESET_EXTREME�LZMACompressor�LZMADecompressor�LZMAFile�	LZMAError�open�compress�
decompressZis_check_supported�N)�*)�_encode_filter_properties�_decode_filter_properties��c@s�eZdZd!dd"ddd�dd�Zdd�Zed	d
��Zdd�Zd
d�Zdd�Z	dd�Z
d$dd�Zd&dd�Zd(dd�Z
d*dd�Zdd�Zejfdd�Zdd �ZdS)+rN�rr)�format�check�preset�filtersc	Cs&d|_d|_t|_|dkrL|dkr*td��|dk	r:td��|dkrFt}t}n@|dkr~|dkr`t}t}t	||||d
�|_
d|_ntdj|���t
|tttjf�r�d|kr�|d7}tj||�|_d|_||_n*t|d�s�t|d�r�||_||_ntd��|jtk�r"tj|jtt||d�}tj|�|_dS)NFr�rbrzACannot 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�xb)rrrrr
zInvalid mode: {!r}�bT�read�writez6filename must be a str, bytes, file or PathLike object)Ztrailing_errorrr)rr���)rrrrrr)�_fp�_closefp�_MODE_CLOSED�_mode�
ValueErrorr�
_MODE_READr�_MODE_WRITEr�_compressor�_posr�
isinstance�str�bytes�os�PathLike�builtinsr�hasattr�	TypeError�_compressionZDecompressReaderrr�io�BufferedReader�_buffer)	�self�filename�moderrrrZ	mode_code�raw�r9�)/opt/alt/python36/lib64/python3.6/lzma.py�__init__1sB,
zLZMAFile.__init__cCs�|jtkrdSzB|jtkr,|jj�d|_n"|jtkrN|jj|jj	��d|_Wdz|j
rd|jj�Wdd|_d|_
t|_XXdS)NF)r#r"r%r4�closer&r rr'�flushr!)r5r9r9r:r<�s




zLZMAFile.closecCs
|jtkS)N)r#r")r5r9r9r:�closed�szLZMAFile.closedcCs|j�|jj�S)N)�_check_not_closedr �fileno)r5r9r9r:r@�szLZMAFile.filenocCs|j�o|jj�S)N)�readabler4�seekable)r5r9r9r:rB�szLZMAFile.seekablecCs|j�|jtkS)N)r?r#r%)r5r9r9r:rA�szLZMAFile.readablecCs|j�|jtkS)N)r?r#r&)r5r9r9r:�writable�szLZMAFile.writablecCs|j�|jj|�S)N)�_check_can_readr4�peek)r5�sizer9r9r:rE�sz
LZMAFile.peekcCs|j�|jj|�S)N)rDr4r)r5rFr9r9r:r�sz
LZMAFile.readcCs"|j�|dkrtj}|jj|�S)Nr
)rDr2�DEFAULT_BUFFER_SIZEr4�read1)r5rFr9r9r:rH�szLZMAFile.read1cCs|j�|jj|�S)N)rDr4�readline)r5rFr9r9r:rI�szLZMAFile.readlinecCs:|j�|jj|�}|jj|�|jt|�7_t|�S)N)Z_check_can_writer'rr rr(�len)r5�dataZ
compressedr9r9r:r�s
zLZMAFile.writecCs|j�|jj||�S)N)Z_check_can_seekr4�seek)r5�offset�whencer9r9r:rL�sz
LZMAFile.seekcCs"|j�|jtkr|jj�S|jS)N)r?r#r%r4�tellr()r5r9r9r:rO�s

z
LZMAFile.tell)Nrrr)rr)rr)rr)r)�__name__�
__module__�__qualname__r;r<�propertyr>r@rBrArCrErrHrIrr2�SEEK_SETrLrOr9r9r9r:r&sT

	



r)rrrr�encoding�errors�newlinecCs�d|kr d|krPtd|f��n0|dk	r0td��|dk	r@td��|dk	rPtd��|jdd�}	t||	||||d�}
d|kr�tj|
|||�S|
SdS)	N�trzInvalid mode: %rz0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary mode�)rrrr)r$�replacerr2�
TextIOWrapper)r6r7rrrrrUrVrWZlz_modeZbinary_filer9r9r:rs

cCs t||||�}|j|�|j�S)N)rrr=)rKrrrr�compr9r9r:r6scCsrg}xbt|||�}y|j|�}Wntk
r>|r8Pn�YnX|j|�|jsXtd��|j}|sPqWdj|�S)NzACompressed data ended before the end-of-stream marker was reached�)rr	r�append�eofZunused_data�join)rKrZmemlimitr�resultsZdecomp�resr9r9r:r	Bs 
)rrr)�__all__r.r2r,Z_lzmarr
r1r"r%r&Z
BaseStreamrrrrrr	r9r9r9r:�<module>s0

b-

Hacked By AnonymousFox1.0, Coded By AnonymousFox