Your IP : 3.129.211.190
�
c��f1 � �r � d dl Z d dlZe j Z G d� de j � � Z G d� de j � � ZdS )� Nc �( � e Zd Z d� Zd� Zd� Zd� ZdS )�
BaseStreamc �2 � | j rt d� � �d S )NzI/O operation on closed file)�closed�
ValueError��selfs �3/opt/alt/python311/lib64/python3.11/_compression.py�_check_not_closedzBaseStream._check_not_closed s% � ��;� =��;�<�<�<� =� =� c �V � | � � � st j d� � �d S )NzFile not open for reading)�readable�io�UnsupportedOperationr s r
�_check_can_readzBaseStream._check_can_read �1 � ��}�}��� G��)�*E�F�F�F� G� Gr c �V � | � � � st j d� � �d S )NzFile not open for writing)�writabler r r s r
�_check_can_writezBaseStream._check_can_write r r c � � | � � � st j d� � �| � � � st j d� � �d S )Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)r r r �seekabler s r
�_check_can_seekzBaseStream._check_can_seek sl � ��}�}��� G��)� +F� G� G�
G��}�}��� F��)� +E� F� F�
F� F� Fr N)�__name__�
__module__�__qualname__r r r r � r r
r r s^ � � � � � �)�=� =� =�G� G� G�G� G� G�F� F� F� F� Fr r c �h � � e Zd Z d� Zd
d�Z� fd�Zd� Zd� Zdd�Zd � Z d
� Z
ej fd�Z
d� Z� xZS )�DecompressReaderc � � dS )NTr r s r
r zDecompressReader.readable$ s � ��tr r c � � || _ d| _ d| _ d| _ || _ || _ | j di | j ��| _ || _ d S )NFr ���r )�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args�
_decompressor�_trailing_error)r �fp�decomp_factory�trailing_error�decomp_argss r
�__init__zDecompressReader.__init__'