File: //lib/python3.12/__pycache__/_compression.cpython-312.pyc
�
    )!�h1  �                   �   � d Z ddlZddlZej                  Z G d� dej
                  �      Z G d� dej                  �      Zy)z7Internal classes used by the gzip, lzma and bz2 modules�    Nc                   �(   � e Zd ZdZd� Zd� Zd� Zd� Zy)�
BaseStreamzMode-checking helper functions.c                 �2   � | j                   rt        d�      �y )NzI/O operation on closed file)�closed�
ValueError��selfs    �#/usr/lib/python3.12/_compression.py�_check_not_closedzBaseStream._check_not_closed   s   � ��;�;��;�<�<� �    c                 �N   � | j                  �       st        j                  d�      �y )NzFile not open for reading)�readable�io�UnsupportedOperationr   s    r
   �_check_can_readzBaseStream._check_can_read   �"