관리-도구
편집 파일: connectionpool.cpython-38.pyc
U ��.e^� � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlmZm Z d dlZddlmZm Z mZmZmZmZmZmZmZmZmZmZmZ ddlmZ ddlmZ ddlmZ dd lm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& dd l'm(Z( ddl)m*Z* ddl+m,Z, dd l-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6m7Z7m8Z8m9Z:m;Z; ddl<m=Z= ej>j?Z?e�@eA�ZBeC� ZDG dd� deC�ZEejFejGhZHG dd� deEe(�ZIG dd� deI�ZJdd� ZKdd� Z9dS )� )�absolute_importN)�error�timeout� ) �ClosedPoolError� ProtocolError�EmptyPoolError�HeaderParsingError�HostChangedError�LocationValueError� MaxRetryError� ProxyError�ReadTimeoutError�SSLError�TimeoutError�InsecureRequestWarning�NewConnectionError)�CertificateError)�six)�queue)�port_by_scheme�DummyConnection�HTTPConnection�HTTPSConnection�VerifiedHTTPSConnection� HTTPException�BaseSSLError)�RequestMethods)�HTTPResponse)�is_connection_dropped)�set_file_position)�assert_header_parsing)�Retry)�Timeout)�get_host� parse_url�Url�_normalize_host�_encode_target)� LifoQueuec @ sB e Zd ZdZdZeZd dd�Zdd� Zdd� Z d d � Z dd� ZdS )�ConnectionPoolzz Base class for all connection pools, such as :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`. Nc C s0 |st d��t|| jd�| _|�� | _|| _d S )NzNo host specified.��scheme)r r'