403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/pip/_vendor/cachecontrol/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-312.pyc
�

�k�f���\�ddlmZddlZddlmZddlmZmZmZerddl	m
Z
Gd�d�Zy)�)�annotationsN)�NamedTemporaryFile)�
TYPE_CHECKING�Any�Callable)�HTTPResponsec�N�eZdZdZ						d	d�Zd
d�Zdd�Zdd�Zd
dd�Zdd�Z	y)�CallbackFileWrappera
    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.

    The data is stored in a temporary file until it is all available.  As long
    as the temporary files directory is disk-based (sometimes it's a
    memory-backed-``tmpfs`` on Linux), data will be unloaded to disk if memory
    pressure is high.  For small files the disk usually won't be used at all,
    it'll all be in the filesystem memory cache, so there should be no
    performance impact.
    c�D�tdd��|_||_||_y)Nzrb+T)�delete)r�_CallbackFileWrapper__buf�_CallbackFileWrapper__fp�_CallbackFileWrapper__callback)�self�fp�callbacks   �FC:\Python312\Lib\site-packages\pip/_vendor/cachecontrol/filewrapper.py�__init__zCallbackFileWrapper.__init__!s ��(��d�;��
���	�"���c�<�|jd�}t||�S)Nr)�__getattribute__�getattr)r�namers   r�__getattr__zCallbackFileWrapper.__getattr__(s"���
"�
"�#=�
>���r�4� � rc��	|jjduS#t$rYnwxYw	|jj}|S#t$rYywxYw)NF)rr�AttributeError�closed)rrs  r�__is_fp_closedz"CallbackFileWrapper.__is_fp_closed4s\��	��9�9�<�<�4�'�'���	��	��	��9�9�+�+�F��M���	���	�s��	&�&�A�	A�
Ac��|jr�|jj�dk(rd}nc|jjdd�t	tj
|jj
�dt
j���}|j|�d|_|jj�y)Nrr)�access)	rr
�tell�seek�
memoryview�mmap�fileno�ACCESS_READ�close)r�results  r�_closezCallbackFileWrapper._closeFs����?�?��z�z��� �A�%����
�
����1�%�#��I�I�d�j�j�/�/�1�1�T�=M�=M�N���
�O�O�F�#����	
�
�
���rNc��|jj|�}|r|jj|�|j	�r|j�|S�N)r�readr
�write�"_CallbackFileWrapper__is_fp_closedr)�r�amt�datas   rr,zCallbackFileWrapper.readasE���i�i�n�n�S�)���
�J�J���T�"���� ��K�K�M��rc���|jj|�}|dk(r|dk(r|S|jj|�|j	�r|j�|S)N�s
)r�
_safe_readr
r-r.r)r/s   rr4zCallbackFileWrapper._safe_readlsV���i�i�*�*�3�/���!�8�����K��
�
�������� ��K�K�M��r)rrrzCallable[[bytes], None] | None�return�None)r�strr5r)r5�bool)r5r6r+)r0z
int | Noner5�bytes)r0�intr5r9)
�__name__�
__module__�__qualname__�__doc__rrr.r)r,r4�rrr
r
s=���$#��#�*H�#�	
�#�
!��$�6	�rr
)�
__future__rr$�tempfiler�typingrrr�http.clientrr
r?rr�<module>rDs(��#��'�/�/��(�i�ir

Youez - 2016 - github.com/yon3zu
LinuXploit