/
lib
/
python3
/
dist-packages
/
requests
/
__pycache__
/
Upload File
HOME
� k�b'S � �� � d Z ddlZddlZddlmZmZ ddlmZ ddlm Z ddlmZmZm Z mZ ddlmZ ddlmZmZ dd lmZ dd lmZmZ ddlmZ ddlmZ dd lmZ ddlmZ ddl m!Z! ddl"m#Z#m$Z$ ddl%m&Z& ddl'm(Z(m)Z)m Z m*Z*m+Z+m,Z,mZm-Z-m.Z.mZ ddl/m0Z0 ddl1m2Z2 ddl3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z: ddl;m<Z< n# e=$ r d� Z<Y nw xY wdZ>dZ?dZ@dZA G d� d� � ZB G d� deB� � ZCdS )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)�HTTPResponse)�Timeout)� parse_url)�Retry� )�_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 � � t d� � �)Nz'Missing dependencies for SOCKS support.)r )�args�kwargss �3/usr/lib/python3/dist-packages/requests/adapters.pyr* r* = s � ��E�F�F�F� F� c �2 � � e Zd ZdZ� fd�Z dd�Zd� Z� xZS ) �BaseAdapterzThe Base Transport Adapterc �H �� t � � � � � d S �N)�super�__init__)�self� __class__s �r. r6 zBaseAdapter.__init__J s �� � ���������r/ FNTc � � t �)aC Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest <PreparedRequest>` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple. :type timeout: float or tuple :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. ��NotImplementedError)r7 �request�stream�timeout�verify�cert�proxiess r. �sendzBaseAdapter.sendM s � �"