ó
'—^c           @   sO   d  d l  m Z m Z d  d l m Z e r? d  d l m Z n  e d „ Z d S(   iÿÿÿÿ(   t   CONTENT_CHUNK_SIZEt   Response(   t   MYPY_CHECK_RUNNING(   t   Iteratorc         c   sr   y, x% |  j  j | d t ƒD] } | Vq WWn? t k
 rm x/ t ri |  j  j | ƒ } | sa Pn  | Vq? Wn Xd S(   s8   Given a requests Response, provide the data chunks.
    t   decode_contentN(   t   rawt   streamt   Falset   AttributeErrort   Truet   read(   t   responset
   chunk_sizet   chunk(    (    s8   /tmp/pip-build-eiI0Wo/pip/pip/_internal/network/utils.pyt   response_chunks	   s    	N(   t   pip._vendor.requests.modelsR    R   t   pip._internal.utils.typingR   t   typingR   R   (    (    (    s8   /tmp/pip-build-eiI0Wo/pip/pip/_internal/network/utils.pyt   <module>   s   