Skip to content
Myr

Update urllib3 to 1.13.1

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

authored by Cory Benfield · committed by Cory Benfield · parent b444f21 · Browse files · 2 files+11 added−2 removed
This commit

State

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

Diff stats

2 files+11 added−2 removed

  • other:+11 added−2 removed

2 files+11 added−2 removed

modified:requests/packages/urllib3/__init__.py+1 added-1 removed
30 unmodified lines
31 pass3233__author__ = 'Andrey Petrov (andrey.petrov@shazow.net)'34__license__ = 'MIT'35__version__ = '1.13'35__version__ = '1.13.1'3637__all__ = (38 'HTTPConnectionPool',39 'HTTPSConnectionPool',
54 unmodified lines
modified:requests/packages/urllib3/connection.py+10 added-1 removed
263 unmodified lines
264 'deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 '265 'for details.)'.format(hostname)),266 SubjectAltNameWarning267 )268 match_hostname(cert, self.assert_hostname or hostname)268269 # In case the hostname is an IPv6 address, strip the square270 # brackets from it before using it to validate. This is because271 # a certificate with an IPv6 address in it won't have square272 # brackets around that address. Sadly, match_hostname won't do this273 # for us: it expects the plain host part without any extra work274 # that might have been done to make it palatable to httplib.275 asserted_hostname = self.assert_hostname or hostname276 asserted_hostname = asserted_hostname.strip('[]')277 match_hostname(cert, asserted_hostname)278279 self.is_verified = (resolved_cert_reqs == ssl.CERT_REQUIRED or280 self.assert_fingerprint is not None)281282
6 unmodified lines