MINI MINI MANI MO
3
  \                 @   s:   d Z ddlZejZG dd dejZG dd dejZdS )z7Internal classes used by the gzip, lzma and bz2 modules    Nc               @   s0   e Zd ZdZdd Zdd Zdd Zdd	 Zd
S )
BaseStreamzMode-checking helper functions.c             C   s   | j rtdd S )NzI/O operation on closed file)closed
ValueError)self r   $/usr/lib64/python3.6/_compression.py_check_not_closed   s    zBaseStream._check_not_closedc             C   s   | j  stjdd S )NzFile not open for reading)readableioUnsupportedOperation)r   r   r   r   _check_can_read   s    zBaseStream._check_can_readc             C   s   | j  stjdd S )NzFile not open for writing)writabler
   r   )r   r   r   r   _check_can_write   s    zBaseStream._check_can_writec             C   s(   | j  stjd| j s$tjdd S )Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)r	   r
   r   seekable)r   r   r   r   _check_can_seek   s    
zBaseStream._check_can_seekN)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r   r   	   s
   r   c                   sl   e Zd ZdZdd Zf fddZ fddZdd	 Zd
d Zdd
dZ	dd Z
ejfddZ
dd Z  ZS )DecompressReaderz5Adapts the decompressor API to a RawIOBase reader APIc             C   s   dS )NTr   )r   r   r   r   r	   $   s    zDecompressReader.readablec             K   s>