Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/lzma.cpython-312.opt-2.pyc

�

�Q�f�3�	��	gd�ZddlZddlZddlZddl�ddlmZmZddlZdZdZ	dZ
Gd�dej�Zddd	dddddd
�d�Z
ed	ddfd�Zeddfd
�Zy))$�
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��eZdZ	dddddd�d�Zd�Zed��Zd�Zd�Zd	�Z	d
�Z
dd�Zdd�Zdd
�Z
dd�Zd�Zej"fd�Zd�Zy)r N�����format�check�preset�filtersc���	d|_d|_t|_|dvr,|dk7rt	d��|�t	d��|�t
}t}nH|dvr*|�t}t}t||||��|_
d|_nt	d	j|���t|ttt j"f�r3d
|vr|d
z
}t%j&||�|_d|_||_n2t)|d�st)|d
�r||_||_nt+d��|jtk(rGt-j.|jt0t2||��}t5j6|�|_yy)NF)�r�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&zInvalid mode: {!r}�bT�read�writez6filename must be a str, bytes, file or PathLike object)�trailing_errorr/r2)�_fp�_closefp�_MODE_CLOSED�_mode�
ValueErrorr�
_MODE_READr�_MODE_WRITEr�_compressor�_posr/�
isinstance�str�bytes�os�PathLike�builtinsr"�hasattr�	TypeError�_compression�DecompressReaderrr!�io�BufferedReader�_buffer)	�self�filename�moder/r0r1r2�	mode_code�raws	         �+/opt/alt/python312/lib64/python3.12/lzma.py�__init__zLZMAFile.__init__1sp��)	�T�����
�!��
��;����{� �"C�D�D��!� �"I�J�J��~�$��"�I�
�6�
6��~�"��#�I�-�V�5�5;�W� N�D���D�I��1�8�8��>�?�?��h��e�R�[�[� 9�:��$�������}�}�X�t�4�D�H� �D�M�"�D�J�
�X�v�
&�'�(�G�*D��D�H�"�D�J��T�U�U��:�:��#��/�/����:J�(���J�C��,�,�S�1�D�L�$�c��	|jtk(ry	|jtk(r"|jj	�d|_nM|jt
k(r:|jj|jj��d|_	|jr|jj	�d|_d|_
t|_y#d|_d|_
t|_wxYw#	|jr|jj	�d|_d|_
t|_w#d|_d|_
t|_wxYwxYw)NF)rCrBrErU�closerFr@r>rG�flushrA�rVs r[r_zLZMAFile.close�s��	�
�:�:��%��	*��z�z�Z�'����"�"�$�#������{�*������t�/�/�5�5�7�8�#'�� �
*��=�=��H�H�N�N�$���� %��
�)��
�� ��� %��
�)��
��

*��=�=��H�H�N�N�$���� %��
�)��
�� ��� %��
�)��
�s0�BC8�&C�C5�8E�:&D:� E�:E�Ec�*�	|jtk(S�N)rCrBras r[�closedzLZMAFile.closed�s��*��z�z�\�)�)r]c�X�	|j�|jj�Src)�_check_not_closedr@�filenoras r[rgzLZMAFile.fileno�s"��A���� ��x�x��� � r]c�\�	|j�xr|jj�Src)�readablerU�seekableras r[rjzLZMAFile.seekable�s#��7��}�}��:�4�<�<�#8�#8�#:�:r]c�J�	|j�|jtk(Src)rfrCrEras r[rizLZMAFile.readable�s ��=���� ��z�z�Z�'�'r]c�J�	|j�|jtk(Src)rfrCrFras r[�writablezLZMAFile.writable�s ��=���� ��z�z�[�(�(r]c�Z�	|j�|jj|�Src)�_check_can_readrU�peek�rV�sizes  r[rpz
LZMAFile.peek�s,��	�
	
�����|�|� � ��&�&r]c�Z�	|j�|jj|�Src)rorUr=rqs  r[r=z
LZMAFile.read�s*��	�
	
�����|�|� � ��&�&r]c��	|j�|dkrtj}|jj	|�S)Nr&)rorS�DEFAULT_BUFFER_SIZErU�read1rqs  r[rvzLZMAFile.read1�s<��	�	
�����!�8��)�)�D��|�|�!�!�$�'�'r]c�Z�	|j�|jj|�Src)rorU�readlinerqs  r[rxzLZMAFile.readline�s*��	�	
�����|�|�$�$�T�*�*r]c�0�	|j�t|ttf�rt	|�}nt|�}|j}|jj|�}|jj|�|xj|z
c_|Src)�_check_can_writerIrK�	bytearray�len�
memoryview�nbytesrGr#r@r>rH)rV�data�length�
compresseds    r[r>zLZMAFile.write�s{��	�	
�����d�U�I�.�/���Y�F��d�#�D��[�[�F��%�%�.�.�t�4�
������z�"��	�	�V��	��
r]c�\�	|j�|jj||�Src)�_check_can_seekrU�seek)rV�offset�whences   r[r�z
LZMAFile.seek�s,��
	�	
�����|�|� � ���0�0r]c��	|j�|jtk(r|jj	�S|j
Src)rfrCrErU�tellrHras r[r�z
LZMAFile.tells:��/���� ��:�:��#��<�<�$�$�&�&��y�y�r])Nr4)r-)�__name__�
__module__�__qualname__r\r_�propertyrdrgrjrirmrpr=rvrxr>rS�SEEK_SETr�r��r]r[r r &sv���S2��B�t�T�S2�j*�0�*��*�!�
;�(�
)�
	'�'�
(�+��*#%�+�+�1�$r]r r-)r/r0r1r2�encoding�errors�newlinec�*�	d|vrd|vr5td|����|�td��|�td��|�td��|jdd�}	t||	||||��}
d|vr-tj|�}tj
|
|||�S|
S)	N�tr<zInvalid mode: z0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary mode�r.)rD�replacer rS�
text_encoding�
TextIOWrapper)rWrXr/r0r1r2r�r�r��lz_mode�binary_files           r[r"r"s����.�d�{��$�;��4�9�:�:����O�P�P����M�N�N����N�O�O��l�l�3��#�G��8�W�V�5�"(�'�;�K��d�{��#�#�H�-������X�v�w�G�G��r]c�d�	t||||�}|j|�|j�zSrc)rr#r`)rr/r0r1r2�comps      r[r#r#?s3����&�%���9�D��=�=�������-�-r]c��	g}	t|||�}	|j|�}|j|�|jstd��|j
}|sn�Wdj
|�S#t$r|rY��wxYw)NzACompressed data ended before the end-of-stream marker was reachedr])rr$r!�append�eof�unused_data�join)rr/�memlimitr2�results�decomp�ress       r[r$r$Ks�����G�
�!�&�(�G�<��	��#�#�D�)�C�	���s���z�z��?�@�
@��!�!����� �8�8�G�����	����		�s�A-�-A<�:A<)r5)�__all__rNrSrL�_lzmar(r)rQrBrErF�
BaseStreamr r"rr#rr$r�r]r[�<module>r�s�������	�	��F�����
���f�|�&�&�f�R-��B�t�T��t�T�-�`$�2�d�D�	.�(�$��r]

Hacked By AnonymousFox1.0, Coded By AnonymousFox