&>ac@s)ddlZddlZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z mZmZddlmZddlmZdd lmZdd lmZejeZeZd Zd Zd ZdefdYZ defdYZ!dS(iN(tsix(tcreate_request_object(tHTTPClientError(tURLLib3Session(tis_valid_endpoint_urltis_valid_ipv6_endpoint_urltget_environ_proxies(tfirst_non_none_response(tget_global_history_recorder(t StreamingBody(tparsersi<i cCsi|jd6|jd6i|jd6d6}|ddkrK|j|dt _get_responset _needs_retryt reset_streamR"( R&R/RtattemptsR3Rtsuccess_responset exceptiont total_retries((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pyR.s(         c Cs|j||\}}idd6dd6|d6|d6}|dk rr|\}}||dRER:R.RIRQRfRJR^(((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pyRKs         / tEndpointCreatorc BsGeZdZddeeeddddd ZdZdZ RS(cCs ||_dS(N(R(R&R(((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pyR*sc Cst| r-t| r-td|n| dkrK|j|} n|j} tjd| ||d|d| d|j|d|d| d| d | }t |d | d |j d |d |S(NsInvalid endpoint: %ssSetting %s timeout as %sttimeouttproxiestverifytmax_pool_connectionstsocket_optionst client_certtproxies_configR'R(R)R%( RRt ValueErrorR"t _get_proxiesR'R,R-t_get_verify_valueRR(R&R6t region_namet endpoint_urlRR)RRthttp_session_clsRRRRR'R%((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pytcreate_endpoints*      cCs t|S(N(R(R&RV((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pyR9scCs#|dk r|StjjdtS(NtREQUESTS_CA_BUNDLE(R"tostenvironRR`(R&R((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pyR>s N( R{R|R*R"tDEFAULT_TIMEOUTtMAX_POOL_CONNECTIONSRRRR(((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pyR~s   ("RtloggingRwRtbotocore.vendoredRtbotocore.awsrequestRtbotocore.exceptionsRtbotocore.httpsessionRtbotocore.utilsRRRtbotocore.hooksRtbotocore.historyRtbotocore.responseR tbotocoreR t getLoggerR{R,R[RRRtobjectRR~(((s2/usr/lib/fence-agents/bundled/botocore/endpoint.pyts&      #