HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pip/_internal/network/__pycache__/utils.cpython-312.pyc
�

��h��
��UddlmZmZddlmZmZddlmZddiZee	e	fe
d<dedd	fd
�Zefdededee
d	d	ffd
�Zy	)�)�Dict�	Generator)�CONTENT_CHUNK_SIZE�Response)�NetworkConnectionErrorzAccept-Encoding�identity�HEADERS�resp�returnNc���d}t|jt�r	|jjd�}n|j}d|j
cxkrdkr"nn|j
�d|�d|j��}n6d|j
cxkrdkr!nn|j
�d	|�d|j��}|r
t||�
��y#t$r|jjd�}Y��wxYw)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_msgrs   �=/usr/lib/python3/dist-packages/pip/_internal/network/utils.py�raise_for_statusrs����N��$�+�+�u�%�
	6��[�[�'�'��0�F�����
�d���$��$���� ���x�z�$�(�(��L�	�

�� � �	&�3�	&���� ���x�z�$�(�(��L�	��$�^�d�C�C���"�	6��[�[�'�'��5�F�	6�s�C�$C*�)C*r�
chunk_sizec#�K�	|jj|d��D]}|���y#t$r&	|jj|�}|sYy|���$wxYw�w)z3Given a requests Response, provide the data chunks.F)�decode_contentN)�raw�stream�AttributeError�read)rr�chunks   r�response_chunksr!9st����#��\�\�(�(��.!�1)�
�	�E�4�K�5	��6����L�L�%�%�j�1�E����K�	��s%�A�&+�A�'A�A�A�A)�typingrr�pip._vendor.requests.modelsrr�pip._internal.exceptionsrr	�str�__annotations__r�intrr!��r�<module>r*sn��"�"�D�;�*-�j�9���c�3�h��9�D�8�D��D�:+=�'��'�$'�'��u�d�D� �!�'r)