ok
Direktori : /proc/self/root/proc/self/root/lib/python2.7/site-packages/rhn/ |
Current File : //proc/self/root/proc/self/root/lib/python2.7/site-packages/rhn/SmartIO.pyc |
� ��Qc @ sN d Z d d l Z d d l m Z d d d � � YZ d d � Z d � Z d S( s* This module implements the SmartIO class i����N( t StringIOt 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'