ó b@RTc@sÞddlZddlZddlZddlmZddlZyddlmZm Z Wn'e k rƒddl mZm Z nXde fd„ƒYZ ye ZddlZejZWn3e efk rîdZdefd„ƒYZnXdd lmZmZdd lmZdd lmZdd lmZmZmZm Z dd l!m"Z"idd6dd6Z#ej$dddƒZ%dee fd„ƒYZdefd„ƒYZdefd„ƒYZ&erÚeZ'e&ZndS(iÿÿÿÿN(ttimeout(tHTTPConnectiont HTTPExceptiontDummyConnectioncBseZdZRS(s-Used to detect a failed ConnectionCls import.(t__name__t __module__t__doc__(((sQ/opt/freeware/lib/python2.7/site-packages/requests/packages/urllib3/connection.pyR st BaseSSLErrorcBseZRS((RR(((sQ/opt/freeware/lib/python2.7/site-packages/requests/packages/urllib3/connection.pyRsi(tConnectTimeoutErrortSystemTimeWarning(tmatch_hostname(tsix(tresolve_cert_reqstresolve_ssl_versiontssl_wrap_sockettassert_fingerprint(t connectioniPthttpi»thttpsiÞRcBsZeZdZedZejejdfgZe Z d„Z d„Z d„Z d„ZRS(s{ Based on httplib.HTTPConnection but provides an extra constructor backwards-compatibility layer between older and newer Pythons. Additional keyword parameters are used to configure attributes of the connection. Accepted parameters include: - ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool` - ``source_address``: Set the source address for the current connection. .. note:: This is ignored for Python 2.6. It is only applied for 2.7 and 3.x - ``socket_options``: Set specific options on the underlying socket. If not specified, then defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy. For example, if you wish to enable TCP Keep Alive in addition to the defaults, you might pass:: HTTPConnection.default_socket_options + [ (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), ] Or you may want to disable the defaults by passing an empty list (e.g., ``[]``). RicOstjr|jddƒn|jdƒ|_tjdkrP|jddƒn|jd|jƒ|_ t j |||ŽdS(Ntstricttsource_addressiitsocket_options(ii( R tPY3tpoptNonetgetRtsyst version_infotdefault_socket_optionsRt_HTTPConnectiont__init__(tselftargstkw((sQ/opt/freeware/lib/python2.7/site-packages/requests/packages/urllib3/connection.pyRZs cCs—i}|jr|j|d|ƒn|tj kp`|jdk |_!dS( NR)isWSystem time is way off (before {0}). This will probably lead to SSL verification errorsR?R@tserver_hostnamet ssl_versiont binary_form("R(R R?R RDR#R+RR*R,R-R)tdatetimetdatettodayt RECENT_DATEtwarningstwarntformatR RR8R9R@Rt getpeercerttTrueR;t CERT_NONERAR5R t CERT_REQUIREDR6(RR'tresolved_cert_reqstresolved_ssl_versionthostnamet is_time_off((sQ/opt/freeware/lib/python2.7/site-packages/requests/packages/urllib3/connection.pyR/Ás:           N( RRRRR?R@RDRRBR/(((sQ/opt/freeware/lib/python2.7/site-packages/requests/packages/urllib3/connection.pyR>¬s ((RFRR2RR%RJt http.clientRRRt ImportErrorthttplibtobjectRR7R;tSSLErrorRtAttributeErrorRt BaseExceptiont exceptionsRR tpackages.ssl_match_hostnameR tpackagesR t util.ssl_R R RRtutilRR0RGRIR>tUnverifiedHTTPSConnection(((sQ/opt/freeware/lib/python2.7/site-packages/requests/packages/urllib3/connection.pyts>       " `G