v_c@s{ddlmZmZddlmZddlmZerUddlmZm Z nidd6Z dZ edZ d S( i(tCONTENT_CHUNK_SIZEtResponse(tNetworkConnectionError(tMYPY_CHECK_RUNNING(tDicttIteratortidentitysAccept-EncodingcCsd}t|jtrWy|jjd}Wq`tk rS|jjd}q`Xn |j}d|jkozdknrd|j||jf}n;d|jkodknrd|j||jf}n|rt|d |ndS( Nusutf-8s iso-8859-1iiu%s Client Error: %s for url: %siXu%s Server Error: %s for url: %stresponse(t isinstancetreasontbytestdecodetUnicodeDecodeErrort status_codeturlR(trespthttp_error_msgR ((sL/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/network/utils.pytraise_for_statuss  ccsry,x%|jj|dtD] }|VqWWn?tk rmx/tri|jj|}|saPn|Vq?WnXdS(s8Given a requests Response, provide the data chunks. tdecode_contentN(trawtstreamtFalsetAttributeErrortTruetread(Rt chunk_sizetchunk((sL/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/network/utils.pytresponse_chunks:s     N( tpip._vendor.requests.modelsRRtpip._internal.exceptionsRtpip._internal.utils.typingRttypingRRtHEADERSRR(((sL/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/network/utils.pyts