/usr/lib/python2.6/site-packages/rhn
NameSizeModeActions
connections.py106680644editdlrm
connections.pyc96270644editdlrm
connections.pyo95620644editdlrm
nonblocking.py24410644editdlrm
nonblocking.pyc27710644editdlrm
nonblocking.pyo27710644editdlrm
rhnLockfile.py33060644editdlrm
rhnLockfile.pyc32380644editdlrm
rhnLockfile.pyo32380644editdlrm
rpclib.py241480644editdlrm
rpclib.pyc219680644editdlrm
rpclib.pyo218420644editdlrm
SmartIO.py27250644editdlrm
SmartIO.pyc32060644editdlrm
SmartIO.pyo32060644editdlrm
SSL.py91220644editdlrm
SSL.pyc79290644editdlrm
SSL.pyo79290644editdlrm
transports.py315320644editdlrm
transports.pyc236020644editdlrm
transports.pyo236020644editdlrm
UserDictCase.py23320644editdlrm
UserDictCase.pyc37570644editdlrm
UserDictCase.pyo37570644editdlrm
__init__.py1920644editdlrm
__init__.pyc3070644editdlrm
__init__.pyo3070644editdlrm
Edit: /usr/lib/python2.6/site-packages/rhn/SmartIO.pyo (3206B)
Ñò ˜auKc@sZdZddkZddkZddklZddd„ƒYZdd„Zd„ZdS( s* This module implements the SmartIO class iÿÿÿÿN(tStringIOtSmartIOcBsAeZdZddd„Zd„Zd„Zd„Zd„ZRS(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@icCs6||_tƒ|_|o d|_n d|_dS(Nii(t _max_mem_sizeRt_iot_fixed(tselft max_mem_sizet force_mem((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pyt__init__s    cCs ||_dS(N(R(RR((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pytset_max_mem_size&scCs|iS(N(R(R((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pytget_max_mem_size)scCsz|ip\t|ƒ|iiƒ|ijo5tƒ}|i|iiƒƒd|_||_qfn|ii|ƒdS(Ni(RtlenRttellRt _tempfiletwritetgetvalue(Rtdatattmpfile((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pyR,s #  cCst|i|ƒS(N(tgetattrR(Rtname((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pyt __getattr__8s(t__name__t __module__t__doc__RR R RR(((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pyRs    cCseddk}|p tƒ}n|iddtiƒd|ƒ\}}ti|ƒti|dƒS(Niÿÿÿÿtprefixs_rhn_transports-%d-tdirswb+(ttempfiletgetDefaultStoragetmkstemptostgetpidtunlinktfdopen(ttmpdirRtfdtfname((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pyR <s    cCs©d}d}yt|ƒ}Wntj o|SXxe|iƒD]W}|idƒoA|idƒ}t|ƒdjo|diƒp|}q—q@q@W|iƒ|S(sY Reads the default temp dir from up2date config. if defined uses that else use /tmp. s/etc/sysconfig/rhn/up2dates/tmpstmpDir=t=iiÿÿÿÿ(topentIOErrort readlinest startswithtsplitR tstriptclose(t up2dateCfgR!tftlinetcfgdir((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pyRFs # (( RRttimet cStringIORRtNoneR R(((s//usr/lib/python2.6/site-packages/rhn/SmartIO.pyt s   +