| Server IP : 77.68.64.21 / Your IP : 216.73.217.145 Web Server : Apache System : Linux hp3-wp-1011352.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els9.x86_64 #1 SMP Fri Jul 10 17:06:31 UTC 2026 x86_64 User : csh2516497 ( 2094697) PHP Version : 8.3.30 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/rhn/ |
Upload File : |
�
�+Xc @ sj d Z d d l Z y d d l m Z Wn! e k
rI d d l m Z n Xd d d � � YZ d � Z d S( s*
This module implements the SmartIO class
i����N( t StringIO( t BytesIOt SmartIOc B sA e Z d Z d d d � Z d � Z d � Z d � Z d � Z RS( s�
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
i @ i c C s4 | | _ t � | _ | r'