Skip to content
Myr

Update urllib3 to 232f496

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kevin Burke · committed by Kevin Burke · parent e40342a · Browse files · 3 files+7 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−3 removed

  • other:+7 added−3 removed

3 files+7 added−3 removed

modified:requests/packages/urllib3/connection.py+4 added-1 removed
78 unmodified lines
7980 resolved_cert_reqs = resolve_cert_reqs(self.cert_reqs)81 resolved_ssl_version = resolve_ssl_version(self.ssl_version)8283 if self._tunnel_host:83 # the _tunnel_host attribute was added in python 2.6.3 (via84 # http://hg.python.org/cpython/rev/0f57b30a152f) so pythons 2.6(0-2) do85 # not have them.86 if getattr(self, '_tunnel_host', None):87 self.sock = sock88 # Calls self._set_hostport(), so self.host is89 # self._tunnel_host below.90 self._tunnel()
20 unmodified lines
modified:requests/packages/urllib3/connectionpool.py+3 added-1 removed
369 unmodified lines
370371 # TODO: Add optional support for socket.gethostbyname checking.372 scheme, host, port = get_host(url)373374 # Use explicit default port for comparison when none is given375 if self.port and not port:375 # Use explicit default port for comparison when none is given.376 port = port_by_scheme.get(scheme)377 elif not self.port and port == port_by_scheme.get(scheme):378 port = None379380 return (scheme, host, port) == (self.scheme, self.host, self.port)381382 def urlopen(self, method, url, body=None, headers=None, retries=3,
301 unmodified lines
modified:requests/packages/urllib3/request.py-1 removed
43 unmodified lines
44 explicitly.45 """4647 _encode_url_methods = set(['DELETE', 'GET', 'HEAD', 'OPTIONS'])48 _encode_body_methods = set(['PATCH', 'POST', 'PUT', 'TRACE'])4849 def __init__(self, headers=None):50 self.headers = headers or {}51
90 unmodified lines