
    Jxh              
           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d	S )    )Dict	Generator)CONTENT_CHUNK_SIZEResponse)NetworkConnectionErrorzAccept-EncodingidentityHEADERSrespreturnNc                    d}t          | j        t                    rF	 | j                            d          }n1# t          $ r | j                            d          }Y nw xY w| j        }d| j        cxk    rdk     rn n| j         d| d| j         }n)d| j        cxk    rdk     rn n| j         d	| d| j         }|rt          || 
          d S )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      N/var/www/html/what/lib/python3.11/site-packages/pip/_internal/network/utils.pyraise_for_statusr      s2   N$+u%% 

	6[''00FF! 	6 	6 	6[''55FFF	6 
d$$$$$$$$$LLLL$(LL 	 
 	&	&	&	&3	&	&	&	&	&LLLL$(LL 	  D$^dCCCCD Ds   9 $A A r   
chunk_sizec              #      K   	 | j                             |d          D ]}|V  dS # t          $ r& 	 | j                             |          }|sY dS |V  $w xY w)z3Given a requests Response, provide the data chunks.F)decode_contentTN)rawstreamAttributeErrorread)r   r   chunks      r   response_chunksr!   9   s      #\((. !1 ) 
 
 	 	E4 KKKK5	 	6    	L%%j11E KKK		s   #) 'AA)typingr   r   pip._vendor.requests.modelsr   r   pip._internal.exceptionsr   r	   str__annotations__r   intr   r!        r   <module>r*      s    " " " " " " " " " D D D D D D D D ; ; ; ; ; ;* -j9c3h 9 9 9D8 D D D D D: +=' ''$''udD !' ' ' ' ' 'r)   