403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/pip/_vendor/cachecontrol/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-311.pyc
�

�/�cj��6�ddlmZddlZGd�de��ZdS)�)�NamedTemporaryFileNc�8�eZdZdZd�Zd�Zd�Zd�Zd	d�Zd�Z	dS)
�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�N�tdd���|_||_||_dS)Nzrb+T)�delete)r�_CallbackFileWrapper__buf�_CallbackFileWrapper__fp�_CallbackFileWrapper__callback)�self�fp�callbacks   �F/usr/lib/python3/dist-packages/pip/_vendor/cachecontrol/filewrapper.py�__init__zCallbackFileWrapper.__init__s(��'��d�;�;�;��
���	�"�����c�L�|�d��}t||��S)Nr	)�__getattribute__�getattr)r�namers   r�__getattr__zCallbackFileWrapper.__getattr__!s(���
"�
"�#=�
>�
>���r�4� � � rc�~�	|jjduS#t$rYnwxYw	|jjS#t$rYnwxYwdS)NF)r	r�AttributeError�closed)rs r�__is_fp_closedz"CallbackFileWrapper.__is_fp_closed-sm��	��9�<�4�'�'���	�	�	��D�	����	��9�#�#���	�	�	��D�	����
�us�
�
��-�
:�:c�~�|jr�|j���dkrd}n`|j�dd��t	tj|j���dt
j�����}|�|��d|_|j���dS)Nrr)�access)	r
r�tell�seek�
memoryview�mmap�fileno�ACCESS_READ�close)r�results  r�_closezCallbackFileWrapper._close>s����?�
	$��z��� � �A�%�%�����
����1�%�%�%�#��I�d�j�/�/�1�1�1�T�=M�N�N�N����
�O�O�F�#�#�#����	
�
�������rNc���|j�|��}|r|j�|��|���r|���|S�N)r	�readr�write�"_CallbackFileWrapper__is_fp_closedr$�r�amt�datas   rr'zCallbackFileWrapper.readYs[���y�~�~�c�"�"���	#�
�J���T�"�"�"���� � �	��K�K�M�M�M��rc���|j�|��}|dkr|dkr|S|j�|��|���r|���|S)N�s
)r	�
_safe_readrr(r)r$r*s   rr/zCallbackFileWrapper._safe_readdsk���y�#�#�C�(�(���!�8�8������K��
���������� � �	��K�K�M�M�M��rr&)
�__name__�
__module__�__qualname__�__doc__rrr)r$r'r/�rrrr	s}��������$#�#�#�

!�
!�
!����"���6	�	�	�	�����rr)�tempfilerr�objectrr4rr�<module>r7s`��
(�'�'�'�'�'�����f�f�f�f�f�&�f�f�f�f�fr

Youez - 2016 - github.com/yon3zu
LinuXploit