관리-도구
편집 파일: lzma.cpython-39.opt-2.pyc
a R�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 Zd!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 rL|dkr*td��|d ur:td��|d u rFt}t}n@|dv r~|d u r`t}t}t ||||d�| _ d| _ntd �|���t |tttjf�r�d |vr�|d 7 }t�||�| _ d| _|| _n*t|d�s�t|d �r�|| _ || _ntd��| jtk�r"tj| j tt||d�}t�|�| _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/python39/lib64/python3.9/lzma.py�__init__1 sF ,� �zLZMAFile.__init__c C s� | j tkrd S z~| j tkr,| j�� d | _n"| j tkrN| j�| j� � � d | _W z&| j rb| j�� W d | _d| _ t| _ q�d | _d| _ t| _ 0 n>z&| j r�| j�� W d | _d| _ t| _ nd | _d| _ t| _ 0 0 d S )NF)r"