✏️ 编辑:_compression.cpython-39.opt-2.pyc
路径:
/usr/lib64/python3.9/__pycache__/_compression.cpython-39.opt-2.pyc
大小:3.89 KB · 修改:2026-08-12 15:51:23 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �i� � @ s6 d dl Z e jZG dd� de j�ZG dd� de j�ZdS )� Nc @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) � BaseStreamc C s | j rtd��d S )NzI/O operation on closed file)�closed� ValueError��self� r �$/usr/lib64/python3.9/_compression.py�_check_not_closed s zBaseStream._check_not_closedc C s | � � st�d��d S )NzFile not open for reading)�readable�io�UnsupportedOperationr r r r �_check_can_read s zBaseStream._check_can_readc C s | � � st�d��d S )NzFile not open for writing)�writabler r r r r r �_check_can_write s zBaseStream._check_can_writec C s( | � � st�d��| �� s$t�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 sf e Zd Zdd� Zddd�Z� fdd�Zdd � Zd d� Zdd d�Zdd� Z e jfdd�Zdd� Z � ZS )�DecompressReaderc C s dS )NTr r r r r r $ s zDecompressReader.readabler c K sB || _ d| _d| _d| _|| _|| _| jf i | j��| _|| _d S )NFr ���)�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args� _decompressor�_trailing_error)r �fp�decomp_factory�trailing_error�decomp_argsr r r �__init__'