AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/lzma.cpython-310.opt-2.pyc |
o 6��f�3 � @ s� g d �Z ddlZddlZddlZddlT ddlmZmZ ddlZdZdZ dZ G dd� dej�Zddd dddddd�dd �Z ed ddfdd�Zeddfdd�ZdS ))$Z CHECK_NONEZCHECK_CRC32ZCHECK_CRC64ZCHECK_SHA256ZCHECK_ID_MAXZ CHECK_UNKNOWNZFILTER_LZMA1ZFILTER_LZMA2ZFILTER_DELTAZ FILTER_X86ZFILTER_IA64Z FILTER_ARMZFILTER_ARMTHUMBZFILTER_POWERPCZFILTER_SPARC�FORMAT_AUTO� FORMAT_XZZFORMAT_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� e Zd Z d!ddddd�dd�Zdd� Zed d � �Zdd� Zd d� Zdd� Z dd� Z d"dd�Zd"dd�Zd"dd�Z d"dd�Zdd� Zejfdd�Zdd � ZdS )#r N�r�����format�check�preset�filtersc C s* d | _ d| _t| _|dv r'|dkrtd��|d urtd��|d u r$t}t}n |dv r@|d u r1t}t}t ||||d�| _ d| _ntd �|���t |tttjf�rfd |vrX|d 7 }t�||�| _ d| _|| _nt|d�spt|d �rw|| _ || _ntd��| jtkr�tj| j tt||d�}t�|�| _d S d S )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�aZab�xZxbr r zInvalid mode: {!r}�bT�read�writez6filename must be a str, bytes, file or PathLike object)Ztrailing_errorr r )�_fp�_closefp�_MODE_CLOSED�_mode� ValueErrorr � _MODE_READr �_MODE_WRITEr �_compressor�_posr � isinstance�str�bytes�os�PathLike�builtinsr �hasattr� TypeError�_compressionZDecompressReaderr r �io�BufferedReader�_buffer) �self�filename�moder r r r Z mode_code�raw� r8 �+/opt/alt/python310/lib64/python3.10/lzma.py�__init__1 sJ *� ��zLZMAFile.__init__c C s� | j tkrd S zK| j tkr| j�� d | _n| j tkr(| j�| j� � � d | _W z | j r>| j�� W d | _d| _ t| _ d S W d | _d| _ t| _ d S d | _d| _ t| _ w z| j rh| j�� W d | _d| _ t| _ w W d | _d| _ t| _ w d | _d| _ t| _ w )NF)r"