� ��^i����UddlmZmZddlmZmZddlmZddiZee e fe d<dedd fd �Z efd ed e dee fd �Zd S)�)�Dict�Iterator)�CONTENT_CHUNK_SIZE�Response)�NetworkConnectionErrorzAccept-Encoding�identity�HEADERS�resp�returnNc��d}t|jt��rF |j�d��}n1#t$r|j�d��}Yn wxYw|j}d|jcxkrdkrnn|j�d|�d|j��}n)d|jcxkrdkrnn|j�d |�d|j��}|rt||� ���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_msgrs ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/network/utils.py�raise_for_statusrs2���N��$�+�u�%�%� �  6��[�'�'��0�0�F�F��!� 6� 6� 6��[�'�'� �5�5�F�F�F� 6������� �d��$�$�$�$��$�$�$�$�$��� L� L�� L� L�$�(� L� L� �� �� � &� &� &� &�3� &� &� &� &� &��� L� L�� L� L�$�(� L� L� ��D�$�^�d�C�C�C�C�D�Ds�9�$A �A r� chunk_sizec#�K� |j�|d���D]}|V��dS#t$r& |j�|��}|sYdS|V��$wxYw)z3Given a requests Response, provide the data chunks.F)�decode_contentTN)�raw�stream�AttributeError�read)rr�chunks r�response_chunksr!9s�����#��\�(�(� �.!�1)� � � � �E�4�K�K�K�K�5 � ��6 ���� ��L�%�%�j�1�1�E�� �����K�K�K�  ����s�#)�'A�A)�typingrr�pip._vendor.requests.modelsrr�pip._internal.exceptionsrr �str�__annotations__r�intrr!��r�r*s���!�!�!�!�!�!�!�!�!�D�D�D�D�D�D�D�D�;�;�;�;�;�;�*-�j�9���c�3�h��9�9�9�D�8�D��D�D�D�D�:+=�'�'��'�$'�'� �e�_�'�'�'�'�'�'r)