관리-도구
편집 파일: connectionpool.cpython-311.pyc
� �܋f]� � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z ddlm Z ddlmZmZmZmZmZmZmZmZ ddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ dd l%m&Z& dd l'm(Z( ddl)m*Z* ddl+m,Z, dd l-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z: ddl;m<Z< ddl=m>Z>m?Z? ddl=m@ZA ddl=mBZBmCZC d dlDZDeDjE ZFn# eG$ r ddlHmFZF Y nw xY we&jI jJ ZJ ejK eL� � ZM eN� � ZO G d� deN� � ZPejQ ejR hZS G d� dePe*� � ZT G d� deT� � ZUd� ZVd � Z@d!� ZWdS )"� )�absolute_importN)�error��timeout� )�HTTPHeaderDict)�BaseSSLError�BrokenPipeError�DummyConnection�HTTPConnection� HTTPException�HTTPSConnection�VerifiedHTTPSConnection�port_by_scheme) �ClosedPoolError�EmptyPoolError�HeaderParsingError�HostChangedError�InsecureRequestWarning�LocationValueError� MaxRetryError�NewConnectionError� ProtocolError� ProxyError�ReadTimeoutError�SSLError�TimeoutError)�six)�queue)�RequestMethods)�HTTPResponse)�is_connection_dropped)�connection_requires_http_tunnel)� LifoQueue)�set_file_position)�assert_header_parsing)�Retry)�CertificateError)�Timeout)�Url�_encode_target)�_normalize_host)�get_host� parse_url)�weakref_finalizec �: � e Zd ZdZdZeZdd�Zd� Zd� Z d� Z d� ZdS ) �ConnectionPoola; Base class for all connection pools, such as :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`. .. note:: ConnectionPool.urlopen() does not normalize or percent-encode target URIs which is useful if your target server doesn't support percent-encoded target URIs. Nc � � |st d� � �t || j �� � | _ |� � � | _ || _ d S )NzNo host specified.��scheme)r r, r4 �host�lower�_proxy_host�port)�selfr5 r8 s �Y/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_vendor/urllib3/connectionpool.py�__init__zConnectionPool.__init__S sJ � �� ;�$�%9�:�:�:�#�D���=�=�=�� ��:�:�<�<����� � � � c �P � t | � � j �d| j �d| j �d�S )Nz(host=z, port=�))�type�__name__r5 r8 �r9 s r: �__str__zConnectionPool.__str__[ s* � �)-�d���)<�)<�)<�d�i�i�i�����S�Sr<