Your IP : 3.144.252.243
o
6��f1 � @ s@ d dl Z d dlZe jZG dd� de j�ZG dd� de j�ZdS )� Nc @ s. e Zd Z dd� Zdd� Zdd� Zdd� Zd S )
�
BaseStreamc C s | j rtd��d S )NzI/O operation on closed file)�closed�
ValueError��self� r �3/opt/alt/python310/lib64/python3.10/_compression.py�_check_not_closed s �zBaseStream._check_not_closedc C � | � � s t�d��d S )NzFile not open for reading)�readable�io�UnsupportedOperationr r r r �_check_can_read �
�zBaseStream._check_can_readc C r
)NzFile not open for writing)�writabler r
r r r r �_check_can_write r zBaseStream._check_can_writec C s( | � � s t�d��| �� st�d��d S )Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)r r r
�seekabler r r r �_check_can_seek s
�zBaseStream._check_can_seekN)�__name__�
__module__�__qualname__r r r r r r r r r s r c sp e Zd Z dd� Zddd�Z� fdd�Zdd � Zd
d� Zdd
d�Zdd� Z dd� Z
ejfdd�Z
dd� Z� ZS )�DecompressReaderc C s dS )NTr r r r r r $ s zDecompressReader.readabler c K sB || _ d| _d| _d| _|| _|| _| jdi | j��| _|| _d S )NFr ���r )�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args�
_decompressor�_trailing_error)r �fpZdecomp_factoryZtrailing_errorZdecomp_argsr r r �__init__'