관리-도구
편집 파일: response.cpython-312.pyc
� G��e�w � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z d dl mZ dZddlmZ ddlmZ dd lmZmZ dd lmZmZmZmZmZmZmZmZmZm Z ddl!m"Z" ddl#m$Z$m%Z% ejL e'� Z( G d � de)� Z* G d� de)� Z+ G d� de)� Z,e� G d� de)� Z- G d� de)� Z.d� Z/ G d� dej` � Z1y)� )�absolute_importN)�contextmanager)�error)�timeout� )�util)�HTTPHeaderDict)�BaseSSLError� HTTPException) �BodyNotHttplibCompatible�DecodeError� HTTPError�IncompleteRead�InvalidChunkLength� InvalidHeader� ProtocolError�ReadTimeoutError�ResponseNotChunked�SSLError)�six)�is_fp_closed�is_response_to_headc � � e Zd Zd� Zd� Zd� Zy)�DeflateDecoderc �R � d| _ d| _ t j � | _ y )NT� )� _first_try�_data�zlib� decompressobj�_obj��selfs ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/urllib3/response.py�__init__zDeflateDecoder.__init__$ s � ������ ��&�&�(�� r c �. � t | j |� S �N��getattrr! �r# �names r$ �__getattr__zDeflateDecoder.__getattr__) � � ��t�y�y�$�'�'r c �� � |s|S | j s| j j |� S | xj |z c_ | j j |� }|rd| _ d | _ |S # t j $ rb d| _ t j t j � | _ | j | j � d | _ cY S # d | _ w xY ww xY w)NF)r r! � decompressr r r r � MAX_WBITS)r# �data�decompresseds r$ r/ zDeflateDecoder.decompress, s� � ���K�����9�9�'�'��-�-�� � �d�� � "��9�9�/�/��5�L��"'���!�� �����z�z� "�#�D�O��*�*�D�N�N�?�;�D�I� "����t�z�z�2�!�� ��T�� �� "�s% �,A/ �/AC$�3C� C$� C � C$N��__name__� __module__�__qualname__r% r, r/ � r r$ r r # s � �)� (�"r r c � � e Zd ZdZdZdZy)�GzipDecoderStater r � N)r4 r5 r6 �FIRST_MEMBER� OTHER_MEMBERS�SWALLOW_DATAr7 r r$ r9 r9 C s � ��L��M��Lr r9 c � � e Zd Zd� Zd� Zd� Zy)�GzipDecoderc � � t j dt j z � | _ t j | _ y �N� )r r r0 r! r9 r; �_stater"