
    eg              
           U d dl mZmZ d dlmZmZ d dlmZ ddiZee	e	f   e
d<   dedd	fd
Zefdededeed	d	f   fdZy	)    )Dict	Generator)CONTENT_CHUNK_SIZEResponse)NetworkConnectionErrorzAccept-EncodingidentityHEADERSrespreturnNc                    d}t        | j                  t              r	 | j                  j                  d      }n| j                  }d| j
                  cxk  rdk  r"n n| j
                   d| d| j                   }n6d| j
                  cxk  rdk  r!n n| j
                   d	| d| j                   }|rt        || 
      y # t        $ r | j                  j                  d      }Y w xY w)N zutf-8z
iso-8859-1i  i  z Client Error: z
 for url: iX  z Server Error: )response)
isinstancereasonbytesdecodeUnicodeDecodeErrorstatus_codeurlr   )r
   http_error_msgr   s      x/var/www/html/FastMealFinder_FlaskServer-InitialRelease/venv/lib/python3.12/site-packages/pip/_internal/network/utils.pyraise_for_statusr      s    N$++u%
	6[[''0F 
d$$ xz$((L 	 
  	&3	& xz$((L 	 $^dCC  " 	6[[''5F	6s   C $C*)C*r   
chunk_sizec              #      K   	 | j                   j                  |d      D ]  }|  y# t        $ r& 	 | j                   j                  |      }|sY y| $w xY ww)z3Given a requests Response, provide the data chunks.F)decode_contentN)rawstreamAttributeErrorread)r   r   chunks      r   response_chunksr!   9   st     #\\((. !1 ) 
 	E4 K5	6  LL%%j1EK	 s%   A&+ A'AAAA)typingr   r   pip._vendor.requests.modelsr   r   pip._internal.exceptionsr   r	   str__annotations__r   intr   r!        r   <module>r*      sn    " " D ;* -j9c3h 9D8 D D: +=''$''udD !'r)   