ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //usr/lib64/python3.8/__pycache__/_compression.cpython-38.opt-1.pyc
U

e5d@s:dZddlZejZGdddejZGdddejZdS)z7Internal classes used by the gzip, lzma and bz2 modulesNc@s0eZdZdZddZddZddZdd	Zd
S)
BaseStreamzMode-checking helper functions.cCs|jrtddS)NzI/O operation on closed file)closed
ValueErrorselfr$/usr/lib64/python3.8/_compression.py_check_not_closedszBaseStream._check_not_closedcCs|stddS)NzFile not open for reading)readableioUnsupportedOperationrrrr_check_can_readszBaseStream._check_can_readcCs|stddS)NzFile not open for writing)writablerrrrrr_check_can_writeszBaseStream._check_can_writecCs(|std|s$tddS)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
rcsjeZdZdZddZdddZfddZd	d
ZddZdddZ	ddZ
ejfddZ
ddZZS)DecompressReaderz5Adapts the decompressor API to a RawIOBase reader APIcCsdS)NTrrrrrr
$szDecompressReader.readablercKs>||_d|_d|_d|_||_||_|jf|j|_||_dS)NFr)_fp_eof_pos_size_decomp_factory_decomp_args
_decompressor_trailing_error)rfpZdecomp_factoryZtrailing_errorZdecomp_argsrrr__init__'szDecompressReader.__init__csd|_tSN)rsupercloser	__class__rrr$;szDecompressReader.closecCs
|jSr")rrrrrrr?szDecompressReader.seekablec
CsPt|:}|d$}|t|}||dt|<W5QRXW5QRXt|S)NB)
memoryviewcastreadlen)rbZviewZ	byte_viewdatarrrreadintoBs$zDecompressReader.readintorcCs|dkr|S|r|jrdSd}|jjr|jjp<|jt}|sDq|jf|j	|_z|j
||}Wq|jk
rYqYqXn4|jjr|jt}|st
dnd}|j
||}|r"qq"|sd|_|j|_dS|jt|7_|S)NrzACompressed file ended before the end-of-stream marker was reachedT)readallrreofZunused_datarr*BUFFER_SIZErr
decompressrZneeds_inputEOFErrorrrr+)rsizer-Zrawblockrrrr*Hs@


zDecompressReader.readcCs,|jdd|_d|_|jf|j|_dS)NrF)rseekrrrrrrrrr_rewindrszDecompressReader._rewindcCs|tjkrnR|tjkr"|j|}n<|tjkrP|jdkrD|tjrDq6|j|}ntd	|||jkrr|
n
||j8}|dkr|ttj|}|sq|t|8}q||jS)NrzInvalid value for whence: {})
rSEEK_SETSEEK_CURrSEEK_ENDrr*DEFAULT_BUFFER_SIZErformatr7minr+)roffsetwhencer-rrrr6xs&






zDecompressReader.seekcCs|jS)z!Return the current file position.)rrrrrtellszDecompressReader.tell)r)r)rrrrr
r!r$rr.r*r7rr8r6r@
__classcell__rrr%rr!s

*r)rrr;r2BufferedIOBaser	RawIOBaserrrrr<module>s