U
    nª/e-  ã                   @   s(   d dl Zd dlmZ G dd„ deƒZdS )é    N)ÚAWSResponsec                   @   s4   e Zd Zdd„ Zedd„ ƒZdd„ Zedd„ ƒZd	S )
ÚAioAWSResponsec                 Ã   s&   | j dkr | j ¡ I dH pd| _ | j S )z!Content of the response as bytes.Nó    )Ú_contentÚrawÚread©Úself© r
   ú:/tmp/pip-unpacked-wheel-8mnez3y6/aiobotocore/awsrequest.pyÚ_content_prop   s    
zAioAWSResponse._content_propc                 C   s   |   ¡ S ©N)r   r   r
   r
   r   Úcontent   s    zAioAWSResponse.contentc                 Ã   s:   t j | j¡}|r$| jI d H  |¡S | jI d H  d¡S d S )Nzutf-8)ÚbotocoreÚutilsÚget_encoding_from_headersÚheadersr   Údecode)r	   Úencodingr
   r
   r   Ú
_text_prop   s    zAioAWSResponse._text_propc                 C   s   |   ¡ S r   )r   r   r
   r
   r   Útext   s    zAioAWSResponse.textN)Ú__name__Ú
__module__Ú__qualname__r   Úpropertyr   r   r   r
   r
   r
   r   r      s   	
r   )Zbotocore.utilsr   Zbotocore.awsrequestr   r   r
   r
   r
   r   Ú<module>   s   