B
    `d                 @   s<   d dl mZmZ d dlmZ er,d dlmZ efddZdS )    )CONTENT_CHUNK_SIZEResponse)MYPY_CHECK_RUNNING)Iteratorc             c   s\   y$x| j j|ddD ]
}|V  qW W n2 tk
rV   x| j |}|sHP |V  q6W Y nX dS )z8Given a requests Response, provide the data chunks.
    F)decode_contentN)rawstreamAttributeErrorread)response
chunk_sizechunk r   ?/tmp/pip-unpacked-wheel-hu9qqap1/pip/_internal/network/utils.pyresponse_chunks	   s    r   N)Zpip._vendor.requests.modelsr   r   pip._internal.utils.typingr   typingr   r   r   r   r   r   <module>   s   