Bump urllib3 from 1.26.8 to 1.26.9 (#1688)

* Bump urllib3 from 1.26.8 to 1.26.9

Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.8 to 1.26.9.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/1.26.9/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.8...1.26.9)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update urllib3==1.26.9

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>

[skip ci]
This commit is contained in:
dependabot[bot] 2022-05-16 20:35:58 -07:00 committed by GitHub
parent 238afb4794
commit 67baf9a260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 14 deletions

View file

@ -1,2 +1,2 @@
# This file is protected via CODEOWNERS # This file is protected via CODEOWNERS
__version__ = "1.26.8" __version__ = "1.26.9"

View file

@ -355,17 +355,15 @@ class HTTPSConnection(HTTPConnection):
def connect(self): def connect(self):
# Add certificate verification # Add certificate verification
conn = self._new_conn() self.sock = conn = self._new_conn()
hostname = self.host hostname = self.host
tls_in_tls = False tls_in_tls = False
if self._is_using_tunnel(): if self._is_using_tunnel():
if self.tls_in_tls_required: if self.tls_in_tls_required:
conn = self._connect_tls_proxy(hostname, conn) self.sock = conn = self._connect_tls_proxy(hostname, conn)
tls_in_tls = True tls_in_tls = True
self.sock = conn
# Calls self._set_hostport(), so self.host is # Calls self._set_hostport(), so self.host is
# self._tunnel_host below. # self._tunnel_host below.
self._tunnel() self._tunnel()

View file

@ -34,6 +34,7 @@ SSL_KEYWORDS = (
"ca_cert_dir", "ca_cert_dir",
"ssl_context", "ssl_context",
"key_password", "key_password",
"server_hostname",
) )
# All known keyword arguments that could be provided to the pool manager, its # All known keyword arguments that could be provided to the pool manager, its

View file

@ -8,6 +8,9 @@ from socket import error as SocketError
from socket import timeout as SocketTimeout from socket import timeout as SocketTimeout
try: try:
try:
import brotlicffi as brotli
except ImportError:
import brotli import brotli
except ImportError: except ImportError:
brotli = None brotli = None

View file

@ -14,6 +14,9 @@ SKIPPABLE_HEADERS = frozenset(["accept-encoding", "host", "user-agent"])
ACCEPT_ENCODING = "gzip,deflate" ACCEPT_ENCODING = "gzip,deflate"
try: try:
try:
import brotlicffi as _unused_module_brotli # noqa: F401
except ImportError:
import brotli as _unused_module_brotli # noqa: F401 import brotli as _unused_module_brotli # noqa: F401
except ImportError: except ImportError:
pass pass

View file

@ -112,11 +112,9 @@ def match_hostname(cert, hostname):
try: try:
# Divergence from upstream: ipaddress can't handle byte str # Divergence from upstream: ipaddress can't handle byte str
host_ip = ipaddress.ip_address(_to_unicode(hostname)) host_ip = ipaddress.ip_address(_to_unicode(hostname))
except ValueError: except (UnicodeError, ValueError):
# Not an IP address (common case) # ValueError: Not an IP address (common case)
host_ip = None # UnicodeError: Divergence from upstream: Have to deal with ipaddress not taking
except UnicodeError:
# Divergence from upstream: Have to deal with ipaddress not taking
# byte strings. addresses should be all ascii, so we consider it not # byte strings. addresses should be all ascii, so we consider it not
# an ipaddress in this case # an ipaddress in this case
host_ip = None host_ip = None
@ -124,7 +122,7 @@ def match_hostname(cert, hostname):
# Divergence from upstream: Make ipaddress library optional # Divergence from upstream: Make ipaddress library optional
if ipaddress is None: if ipaddress is None:
host_ip = None host_ip = None
else: else: # Defensive
raise raise
dnsnames = [] dnsnames = []
san = cert.get("subjectAltName", ()) san = cert.get("subjectAltName", ())

View file

@ -45,7 +45,7 @@ tempora==5.0.1
tokenize-rt==4.2.1 tokenize-rt==4.2.1
tzdata==2022.1 tzdata==2022.1
tzlocal==4.2 tzlocal==4.2
urllib3==1.26.8 urllib3==1.26.9
webencodings==0.5.1 webencodings==0.5.1
websocket-client==1.2.3 websocket-client==1.2.3
xmltodict==0.12.0 xmltodict==0.12.0