403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/laragon/bin/python/python-3.10/Lib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/laragon/bin/python/python-3.10/Lib/__pycache__/_compression.cpython-310.pyc
o

�L�b��@sBdZddlZddlZejZGdd�dej�ZGdd�dej�ZdS)z7Internal classes used by the gzip, lzma and bz2 modules�Nc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�
BaseStreamzMode-checking helper functions.cCs|jrtd��dS)NzI/O operation on closed file)�closed�
ValueError��self�r�$C:\python3.10-64\lib\_compression.py�_check_not_closeds�zBaseStream._check_not_closedcC�|��s	t�d��dS)NzFile not open for reading)�readable�io�UnsupportedOperationrrrr�_check_can_read�
�zBaseStream._check_can_readcCr
)NzFile not open for writing)�writablerr
rrrr�_check_can_writerzBaseStream._check_can_writecCs(|��s	t�d��|��st�d��dS)Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)rrr
�seekablerrrr�_check_can_seeks


�zBaseStream._check_can_seekN)�__name__�
__module__�__qualname__�__doc__r	rrrrrrrr	srcsreZdZdZdd�Zddd�Z�fdd�Zd	d
�Zdd�Zddd�Z	dd�Z
dd�Zej
fdd�Zdd�Z�ZS)�DecompressReaderz5Adapts the decompressor API to a RawIOBase reader APIcCsdS)NTrrrrrr$szDecompressReader.readablercKsB||_d|_d|_d|_||_||_|jdi|j��|_||_dS)NFr���r)�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args�
_decompressor�_trailing_error)r�fpZdecomp_factory�trailing_errorZdecomp_argsrrr�__init__'s
zDecompressReader.__init__csd|_t���S�N)r �super�closer��	__class__rrr';s
zDecompressReader.closecCs
|j��Sr%)rrrrrrr?s
zDecompressReader.seekablec	Cs�t|��9}|�d��}|�t|��}||dt|��<Wd�n1s$wYWd�t|�SWd�t|�S1s@wYt|�S)N�B)�
memoryview�cast�read�len)r�bZviewZ	byte_view�datarrr�readintoBs(���zDecompressReader.readintorcCs�|dkr|��S|r
|jrdSd}	|jjrA|jjp|j�t�}|s#n<|jdi|j	��|_z	|j�
||�}Wn$|jy@Ynw|jjrR|j�t�}|sQt
d��nd}|j�
||�}|r^nq|sjd|_|j|_dS|jt|�7_|S)Nr�TzACompressed file ended before the end-of-stream marker was reachedr)�readallrr �eof�unused_datarr-�BUFFER_SIZErr�
decompressr!Zneeds_input�EOFErrorrrr.)r�sizer0Zrawblockrrrr-HsH

�����zDecompressReader.readcCs8g}|�tj�}r|�|�|�tj�}s
d�|�S)Nr2)r-�sys�maxsize�append�join)r�chunksr0rrrr3qs

�
zDecompressReader.readallcCs0|j�d�d|_d|_|jdi|j��|_dS)NrFr)r�seekrrrrr rrrr�_rewind|szDecompressReader._rewindcCs�|tjkrn/|tjkr|j|}n$|tjkr.|jdkr(|�tj�r(	|�tj�s!|j|}ntd�	|���||jkr?|�
�n||j8}|dkra|�ttj|��}|sW	|jS|t|�8}|dksH|jS)NrzInvalid value for whence: {})
r�SEEK_SET�SEEK_CURr�SEEK_ENDrr-�DEFAULT_BUFFER_SIZEr�formatr@�minr.)r�offset�whencer0rrrr?�s,



�


��zDecompressReader.seekcCs|jS)z!Return the current file position.)rrrrr�tell�szDecompressReader.tell)r)r)rrrrrr$r'rr1r-r3r@rrAr?rI�
__classcell__rrr(rr!s

)r)	rrr:rDr6�BufferedIOBaser�	RawIOBaserrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit