관리-도구
편집 파일: adapters.cpython-38.pyc
U &?�f�k � @ s( d Z ddlZddlZddlZddlZddlmZmZ ddlm Z ddlmZ ddlm Z mZmZmZ ddlmZ ddlmZmZ dd lmZ dd lmZmZ ddlmZ ddlmZ dd lmZ ddl m!Z! ddl"m#Z# ddl$m%Z%m&Z& ddl'm(Z( ddl)m*Z*m+Z+mZm,Z,m-Z-m.Z.mZm/Z/m0Z0mZ ddl1m2Z2 ddl3m4Z4 ddl5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z< zddl=m>Z> W n e?k �r� dd� Z>Y nX ej@�r�ddl1mAZA dZBdZCdZDdZEz ddlFZFe!� ZGeG�He7e6�� W n e?k �r� dZGY nX dddd d!d"�d#d$�ZIG d%d&� d&�ZJG d'd(� d(eJ�ZKdS ))z� requests.adapters ~~~~~~~~~~~~~~~~~ This module contains the transport adapters that Requests uses to define and maintain connections. � N)�ClosedPoolError�ConnectTimeoutError)� HTTPError)� InvalidHeader)�LocationValueError� MaxRetryError�NewConnectionError� ProtocolError)� ProxyError)�ReadTimeoutError� ResponseError)�SSLError)�PoolManager�proxy_from_url)�Timeout)� parse_url)�Retry)�create_urllib3_context� )�_basic_auth_str)� basestring�urlparse)�extract_cookies_to_jar) �ConnectionError�ConnectTimeoutr �InvalidProxyURL� InvalidSchema� InvalidURLr �ReadTimeout� RetryErrorr )�Response)�CaseInsensitiveDict)�DEFAULT_CA_BUNDLE_PATH�extract_zipped_paths�get_auth_from_url�get_encoding_from_headers�prepend_scheme_if_needed�select_proxy� urldefragauth)�SOCKSProxyManagerc O s t d��d S )Nz'Missing dependencies for SOCKS support.)r )�args�kwargs� r, �K/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/requests/adapters.pyr) ? s r) )�PreparedRequestF� r. zbool | str | Nonez#typing.Tuple[str, str] | str | Noner z<(typing.Dict[str, typing.Any], typing.Dict[str, typing.Any]))�request�verify�client_cert�poolmanager�returnc C s� i }i }t | j�}|j�� }|j}t|di �} | �d�} td k oD| }d}|dkrXd}n>|dkrn|rnt|d<