Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/lzma.cpython-37.opt-2.pyc

B

YI~d�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d1d%d,d%d%d%d%d%d-�d.d �Z
ed,d%d%fd/d!�Zed%d%fd0d"�Zd%S)2Z
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!ddddd�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�r���)�format�check�preset�filtersc	Cs&d|_d|_t|_|dkrL|dkr*td��|dk	r:td��|dkrFt}t}n@|dkr~|dkr`t}t}t	||||d�|_
d|_ntd	�|���t
|tttjf�r�d
|kr�|d
7}t�||�|_d|_||_n*t|d�s�t|d
�r�||_||_ntd��|jtk�r"tj|jtt||d�}t�|�|_dS)NF)r�rbrzACannot specify an integrity check when opening a file for readingzICannot specify a preset compression level when opening a file for reading)�w�wb�aZab�xZxb)rrrrr
zInvalid mode: {!r}�bT�read�writez6filename must be a str, bytes, file or PathLike object)Ztrailing_errorrr)�_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�r7�)/opt/alt/python37/lib64/python3.7/lzma.py�__init__1sB,
zLZMAFile.__init__cCs�|jtkrdSzB|jtkr,|j��d|_n"|jtkrN|j�|j�	��d|_Wdz|j
rd|j��Wdd|_d|_
t|_XXdS)NF)r!r r#r2�closer$rrr%�flushr)r3r7r7r8r:�s




zLZMAFile.closecCs
|jtkS)N)r!r )r3r7r7r8�closed�szLZMAFile.closedcCs|��|j��S)N)�_check_not_closedr�fileno)r3r7r7r8r>�szLZMAFile.filenocCs|��o|j��S)N)�readabler2�seekable)r3r7r7r8r@�szLZMAFile.seekablecCs|��|jtkS)N)r=r!r#)r3r7r7r8r?�szLZMAFile.readablecCs|��|jtkS)N)r=r!r$)r3r7r7r8�writable�szLZMAFile.writablecCs|��|j�|�S)N)�_check_can_readr2�peek)r3�sizer7r7r8rC�sz
LZMAFile.peekcCs|��|j�|�S)N)rBr2r)r3rDr7r7r8r�sz
LZMAFile.readcCs"|��|dkrtj}|j�|�S)Nr
)rBr0�DEFAULT_BUFFER_SIZEr2�read1)r3rDr7r7r8rF�szLZMAFile.read1cCs|��|j�|�S)N)rBr2�readline)r3rDr7r7r8rG�szLZMAFile.readlinecCs:|��|j�|�}|j�|�|jt|�7_t|�S)N)Z_check_can_writer%rrrr&�len)r3�dataZ
compressedr7r7r8r�s
zLZMAFile.writecCs|��|j�||�S)N)Z_check_can_seekr2�seek)r3�offset�whencer7r7r8rJ�sz
LZMAFile.seekcCs"|��|jtkr|j��S|jS)N)r=r!r#r2�tellr&)r3r7r7r8rM�s

z
LZMAFile.tell)Nr)r)r)r)r)�__name__�
__module__�__qualname__r9r:�propertyr<r>r@r?rArCrrFrGrr0�SEEK_SETrJrMr7r7r7r8r&sT

	



rr)rrrr�encoding�errors�newlinecCs�d|kr d|krPtd|f��n0|dk	r0td��|dk	r@td��|dk	rPtd��|�dd�}	t||	||||d�}
d|kr�t�|
|||�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"�replacerr0�
TextIOWrapper)r4r5rrrrrSrTrUZlz_modeZbinary_filer7r7r8rs

cCs t||||�}|�|�|��S)N)rrr;)rIrrrr�compr7r7r8r6scCsrg}xbt|||�}y|�|�}Wntk
r>|r8Pn�YnX|�|�|jsXtd��|j}|sPqWd�|�S)NzACompressed data ended before the end-of-stream marker was reached�)rr	r�append�eofZunused_data�join)rIrZmemlimitr�resultsZdecompZresr7r7r8r	Bs 
)r)�__all__r,r0r*Z_lzmarr
r/r r#r$Z
BaseStreamrrrrrr	r7r7r7r8�<module>s0

b-

Hacked By AnonymousFox1.0, Coded By AnonymousFox