Repository URL to install this package:
|
Version:
2.0.0-beta3-2-armbian20.08.0-trunk1 ▾
|
wiperf
/
usr
/
local
/
lib
/
python3.7
/
dist-packages
/
urllib3
/
__pycache__
/
connectionpool.cpython-37.pyc
|
|---|
B
¦b#¦,FBã @ 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 deCZEejFejGhZHG dd deEe(ZIG dd deIZJdd 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
ddZdd Zdd Z d d
Z
dd 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 C s0 |st dt|| jd| _| ¡ | _|| _d S )NzNo host specified.)Úscheme)r r' r+ ÚhostÚlowerÚ_proxy_hostÚport)Úselfr, r/ © r1 ú;/tmp/pip-install-z4i6eiy2/urllib3/urllib3/connectionpool.pyÚ__init__N s
zConnectionPool.__init__c C s dt | j| j| jf S )Nz%s(host=%r, port=%r))ÚtypeÚ__name__r, r/ )r0 r1 r1 r2 Ú__str__V s zConnectionPool.__str__c C s | S )Nr1 )r0 r1 r1 r2 Ú __enter__Y s zConnectionPool.__enter__c C s | ¡ dS )NF)Úclose)r0 Úexc_typeÚexc_valÚexc_tbr1 r1 r2 Ú__exit__\ s zConnectionPool.__exit__c C s dS )zD
Close all pooled connections and disable the pool.
Nr1 )r0 r1 r1 r2 r8 a s zConnectionPool.close)N)r5 Ú
__module__Ú__qualname__Ú__doc__r+ r) ÚQueueClsr3 r6 r7 r<