Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /lib/python3.8/site-packages/pip/_vendor/cachecontrol/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.8/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-38.pyc
U

��.e�	�@s ddlmZGdd�de�ZdS)�)�BytesIOc@sBeZdZdZdd�Zdd�Zdd�Zdd	�Zddd�Zd
d�Z	d
S)�CallbackFileWrapperav
    Small wrapper around a fp object which will tee everything read into a
    buffer, and when that file is closed it will execute a callback with the
    contents of that buffer.

    All attributes are proxied to the underlying file object.

    This class uses members with a double underscore (__) leading prefix so as
    not to accidentally shadow an attribute.
    cCst�|_||_||_dS�N)r�_CallbackFileWrapper__buf�_CallbackFileWrapper__fp�_CallbackFileWrapper__callback)�self�fp�callback�r�H/usr/lib/python3.8/site-packages/pip/_vendor/cachecontrol/filewrapper.py�__init__szCallbackFileWrapper.__init__cCs|�d�}t||�S)Nr)�__getattribute__�getattr)r�namer	rrr�__getattr__s	
zCallbackFileWrapper.__getattr__cCsHz|jjdkWStk
r"YnXz
|jjWStk
rBYnXdS)NF)rr	�AttributeError�closed�rrrrZ__is_fp_closed!s
z"CallbackFileWrapper.__is_fp_closedcCs |jr|�|j���d|_dSr)rr�getvaluerrrr�_close2szCallbackFileWrapper._closeNcCs,|j�|�}|j�|�|��r(|��|Sr)r�readr�write�"_CallbackFileWrapper__is_fp_closedr�rZamt�datarrrr=s
zCallbackFileWrapper.readcCs@|j�|�}|dkr |dkr |S|j�|�|��r<|��|S)N�s
)r�
_safe_readrrrrrrrrrEszCallbackFileWrapper._safe_read)N)
�__name__�
__module__�__qualname__�__doc__r
rrrrrrrrrrs
rN)�ior�objectrrrrr�<module>s

ZeroDay Forums Mini