/usr/lib/python2.7/site-packages/urllib3
NameSizeModeActions
contrib/-0755rm
packages/-0755rm
util/-0755rm
connection.py143460644editdlrm
connection.pyc125970644editdlrm
connection.pyo125970644editdlrm
connectionpool.py350970644editdlrm
connectionpool.pyc268050644editdlrm
connectionpool.pyo268050644editdlrm
exceptions.py66040644editdlrm
exceptions.pyc127880644editdlrm
exceptions.pyo127880644editdlrm
fields.py59430644editdlrm
fields.pyc66970644editdlrm
fields.pyo66970644editdlrm
filepost.py24360644editdlrm
filepost.pyc33670644editdlrm
filepost.pyo33670644editdlrm
poolmanager.py169850644editdlrm
poolmanager.pyc149650644editdlrm
poolmanager.pyo149650644editdlrm
request.py59910644editdlrm
request.pyc60320644editdlrm
request.pyo60320644editdlrm
response.py256090644editdlrm
response.pyc219000644editdlrm
response.pyo219000644editdlrm
_collections.py107460644editdlrm
_collections.pyc129210644editdlrm
_collections.pyo129210644editdlrm
__init__.py27220644editdlrm
__init__.pyc26400644editdlrm
__init__.pyo26400644editdlrm
Edit: /usr/lib/python2.7/site-packages/urllib3/connection.pyo (12597B)
σ 9fc@@skddlmZddlZddlZddlZddlZddlZddlmZm Z ddl Z ddl m Z ddlmZddlmZyddlZejZWn3eefk rμdZdefd „ƒYZnXy eZWn'ek r d efd „ƒYZnXdd lmZmZmZm Z dd l!m"Z"m#Z#ddl$m%Z%m&Z&m'Z'm(Z(m)Z)ddl*m+Z+ddl,m-Z-ej.e/ƒZ0idd6dd6Z1ej2dddƒZ3ej4dƒZ5de6fd„ƒYZ7dee6fd„ƒYZdefd„ƒYZ8de8fd „ƒYZ9d!„Z:erae8Z;e9Z8ne7Z8dS("i(tabsolute_importN(terrorttimeouti(tsix(tHTTPConnection(t HTTPExceptiont BaseSSLErrorcB@seZRS((t__name__t __module__(((s6/usr/lib/python2.7/site-packages/urllib3/connection.pyRstConnectionErrorcB@seZRS((RR(((s6/usr/lib/python2.7/site-packages/urllib3/connection.pyR s(tNewConnectionErrortConnectTimeoutErrortSubjectAltNameWarningtSystemTimeWarning(tmatch_hostnametCertificateError(tresolve_cert_reqstresolve_ssl_versiontassert_fingerprinttcreate_urllib3_contexttssl_wrap_socket(t connection(tHTTPHeaderDictiPthttpi»thttpsiηi i s[^-!#$%&'*+.^_`|~0-9a-zA-Z]tDummyConnectioncB@seZdZRS(s-Used to detect a failed ConnectionCls import.(RRt__doc__(((s6/usr/lib/python2.7/site-packages/urllib3/connection.pyRDsRcB@s“eZdZedZejejdfgZe Z d„Z e d„ƒZ e jd„ƒZ d„Zd„Zd„Zd „Zd d 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. - ``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., ``[]``). RicO@s]tjr|jddƒn|jdƒ|_|jd|jƒ|_tj |||ŽdS(Ntstricttsource_addresstsocket_options( RtPY3tpoptNonetgetRtdefault_socket_optionsRt_HTTPConnectiont__init__(tselftargstkw((s6/usr/lib/python2.7/site-packages/urllib3/connection.pyR$js  cC@s|jjdƒS(sŸ Getter method to remove any trailing dots that indicate the hostname is an FQDN. In general, SSL certificates don't include the trailing dot indicating a fully-qualified domain name, and thus, they don't validate properly when checked against a domain name that includes the dot. In addition, some servers may not expect to receive the trailing dot when provided. However, the hostname with trailing dot is critical to DNS resolution; doing a lookup with the trailing dot will properly only resolve the appropriate FQDN, whereas a lookup without a trailing dot will search the system's search domain list. Thus, it's important to keep the original host around for use only in those cases where it's appropriate (i.e., when doing DNS lookup to establish the actual TCP connection across which we're going to send HTTP requests). t.(t _dns_hosttrstrip(R%((s6/usr/lib/python2.7/site-packages/urllib3/connection.pythostwscC@s ||_dS(sΧ Setter for the `host` property. We assume that only urllib3 uses the _dns_host attribute; httplib itself only uses `host`, and it seems reasonable that other libraries follow suit. N(R)(R%tvalue((s6/usr/lib/python2.7/site-packages/urllib3/connection.pyR+ŠscC@sΎi}|jr|j|dsP          "(  €(m