%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/
Upload File :
Create Path :
Current File : //opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyo

�
�wMVc@s�ddlZddlZddlmZyddlmZmZWn'ek
rkddl	mZmZnXde
fd��YZysdZ
eZdefd��YZyddlmZWn!ek
r�ddl	mZnXddl
Z
e
jZWneefk
rnXd	d
lmZd	dlmZd	dlmZd	d
lmZmZmZmZidd6dd6Zdee
fd��YZdefd��YZdefd��YZ e
r�eZ!e ZndS(i����N(ttimeout(tHTTPConnectiont
HTTPExceptiontDummyConnectioncBseZdZRS(s-Used to detect a failed ConnectionCls import.(t__name__t
__module__t__doc__(((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyRstBaseSSLErrorcBseZRS((RR(((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyRs(tHTTPSConnectioni(tConnectTimeoutError(tmatch_hostname(tsix(tassert_fingerprinttresolve_cert_reqstresolve_ssl_versiontssl_wrap_socketiPthttpi�thttpsRcBsBeZdZedZdZd�Zd�Zd�Zd�Z	RS(s�
    Based on httplib.HTTPConnection but provides an extra constructor
    backwards-compatibility layer between older and newer Pythons.
    RicOsgtjr|jdd�ntjdkr>|jdd�n|jd�|_tj	|||�dS(Ntstrictiitsource_address(ii(
RtPY3tpoptNonetsystversion_infotgetRt_HTTPConnectiont__init__(tselftargstkw((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyRDs	cCsfg}|jr"|j|j�ntj|j|jf|j|�}|jtjtj	|j
�|S(sq Establish a socket connection and set nodelay settings on it.

        :return: a new socket connection
        (Rtappendtsockettcreate_connectionthosttportRt
setsockopttIPPROTO_TCPtTCP_NODELAYttcp_nodelay(Rt
extra_argstconn((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyt	_new_connPs	cCs,||_t|dd�r(|j�ndS(Nt_tunnel_host(tsocktgetattrRt_tunnel(RR)((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyt
_prepare_conn`s	cCs|j�}|j|�dS(N(R*R/(RR)((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pytconnectis(
RRRtport_by_schemetdefault_portR'RR*R/R0(((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyR9s
				RcBs6eZedZddddejd�Zd�ZRS(Rc	KsAtj|||d|d||�||_||_d|_dS(NRRR(RRtkey_filet	cert_filet	_protocol(RR"R#R3R4RRR((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyRqs

		cCs;|j�}|j|�tj||j|j�|_dS(N(R*R/tssltwrap_socketR3R4R,(RR)((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyR0~s
N(	RRR1R2RR t_GLOBAL_DEFAULT_TIMEOUTRR0(((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyRns
	tVerifiedHTTPSConnectioncBsJeZdZdZdZdZiZddddddd�Zd�Z	RS(s[
    Based on httplib.HTTPSConnection but wraps the socket with
    SSL certification.
    cCs:||_||_||_||_||_||_dS(N(R3R4t	cert_reqstca_certstassert_hostnameR(RR3R4R:R;R<R((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pytset_cert�s					cCs�y1tjd|j|jfd|j|j�}Wn0tk
rct|d|j|jf��nX|jtj	tj
|j�t|j
�}t|j�}|j}t|dd�r�||_|j�|j}nt||j|jd|d|jd|d|�|_|tjkr||jrHt|jjd	t�|j�q||jtk	r|t |jj�|jpr|�q|ndS(
NtaddressRs0Connection to %s timed out. (connect timeout=%s)R+R:R;tserver_hostnametssl_versiontbinary_form(!R R!R"R#Rtconn_kwt
SocketTimeoutR	R$R%R&R'R
R:RR@R-RR,R.R+RR3R4R;R6t	CERT_NONERtgetpeercerttTrueR<tFalseR
(RR,tresolved_cert_reqstresolved_ssl_versionthostname((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyR0�s:	

		
		
N(
RRRRR:R;R@RBR=R0(((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyR9�s	("RR RRCthttp.clientRRRtImportErrorthttplibtobjectRRR6Rt
BaseExceptionRt_HTTPSConnectiontSSLErrortAttributeErrort
exceptionsR	tpackages.ssl_match_hostnameR
tpackagesRtutilRR
RRR1R9tUnverifiedHTTPSConnection(((sa/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/connection.pyt<module>s@


"
5E

Zerion Mini Shell 1.0