ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     3
UZt                 @   sX   d Z ddlZyddlmZ W n  ek
r<   ddlmZ Y nX G dd dZdd ZdS )	z*
This module implements the SmartIO class
    N)StringIO)BytesIOc               @   s:   e Zd ZdZdddZdd Zdd	 Zd
d Zdd ZdS )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 | _|rd| _nd| _d S )N   r   )_max_mem_sizer   _io_fixed)selfmax_mem_sizeZ	force_mem r   /usr/lib/python3.6/SmartIO.py__init__   s
    zSmartIO.__init__c             C   s
   || _ d S )N)r   )r
   r   r   r   r   set_max_mem_size'   s    zSmartIO.set_max_mem_sizec             C   s   | j S )N)r   )r
   r   r   r   get_max_mem_size*   s    zSmartIO.get_max_mem_sizec             C   sP   | j s@t|| jj  | jkr@t }|j| jj  d| _ || _| jj| d S )Nr   )r	   lenr   tellr   	_tempfilewritegetvalue)r
   dataZtmpfiler   r   r   r   -   s    zSmartIO.writec             C   s   t | j|S )N)getattrr   )r
   namer   r   r   __getattr__9   s    zSmartIO.__getattr__N)r   r   )	__name__
__module____qualname____doc__r   r   r   r   r   r   r   r   r   r      s   
r   c              C   s6   dd l } | jdtj  d\}}tj| tj|dS )Nr   z_rhn_transports-%d-)prefixzwb+)tempfileZmkstemposgetpidunlinkfdopen)r   fdZfnamer   r   r   r   =   s
    
r   )	r   r    Z	cStringIOr   ImportErrorior   r   r   r   r   r   r   <module>
   s   +