HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/pip/_internal/network/__pycache__/utils.cpython-38.pyc
U

�{�e��@szUddlmZmZddlmZmZddlmZddiZee	e	fe
d<edd�d	d
�Zefeeee
ddfd�dd
�ZdS)�)�Dict�	Generator)�CONTENT_CHUNK_SIZE�Response)�NetworkConnectionErrorzAccept-Encoding�identity�HEADERSN)�resp�returncCs�d}t|jt�rDz|j�d�}WqJtk
r@|j�d�}YqJXn|j}d|jkr`dkr~nn|j�d|�d|j��}n2d|jkr�dkr�nn|j�d	|�d|j��}|r�t||d
��dS)N�zutf-8z
iso-8859-1i�i�z Client Error: z
 for url: iXz Server Error: )�response)�
isinstance�reason�bytes�decode�UnicodeDecodeError�status_code�urlr)r	�http_error_msgr�r�?/tmp/pip-unpacked-wheel-_0scjqea/pip/_internal/network/utils.py�raise_for_statuss��r)r�
chunk_sizer
ccsTz |jj|dd�D]
}|VqWn.tk
rN|j�|�}|sBqJ|Vq0YnXdS)z3Given a requests Response, provide the data chunks.F)�decode_contentN)�raw�stream�AttributeError�read)rr�chunkrrr�response_chunks9s�
r)�typingrrZpip._vendor.requests.modelsrr�pip._internal.exceptionsrr�str�__annotations__r�intrrrrrr�<module>s��