Skip to content

Commit 73290af

Browse files
committed
Upgrade urllib3 to 1.26.10
1 parent b3dc843 commit 73290af

File tree

10 files changed

+10
-8
lines changed

10 files changed

+10
-8
lines changed

news/urllib3.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade urllib3 to 1.26.10

src/pip/_vendor/urllib3/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This file is protected via CODEOWNERS
2-
__version__ = "1.26.9"
2+
__version__ = "1.26.10"

src/pip/_vendor/urllib3/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class BrokenPipeError(Exception):
6868

6969
# When it comes time to update this value as a part of regular maintenance
7070
# (ie test_recent_date is failing) update it to ~6 months before the current date.
71-
RECENT_DATE = datetime.date(2020, 7, 1)
71+
RECENT_DATE = datetime.date(2022, 1, 1)
7272

7373
_CONTAINS_CONTROL_CHAR_RE = re.compile(r"[^-!#$%&'*+.^_`|~0-9a-zA-Z]")
7474

src/pip/_vendor/urllib3/connectionpool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ def _is_ssl_error_message_from_http_proxy(ssl_error):
767767
isinstance(e, BaseSSLError)
768768
and self.proxy
769769
and _is_ssl_error_message_from_http_proxy(e)
770+
and conn.proxy
771+
and conn.proxy.scheme == "https"
770772
):
771773
e = ProxyError(
772774
"Your proxy appears to only use HTTP and not HTTPS, "

src/pip/_vendor/urllib3/contrib/pyopenssl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ def makefile(self, mode, bufsize=-1):
406406
self._makefile_refs += 1
407407
return _fileobject(self, mode, bufsize, close=True)
408408

409-
410409
else: # Platform-specific: Python 3
411410
makefile = backport_makefile
412411

src/pip/_vendor/urllib3/contrib/securetransport.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,6 @@ def makefile(self, mode, bufsize=-1):
770770
self._makefile_refs += 1
771771
return _fileobject(self, mode, bufsize, close=True)
772772

773-
774773
else: # Platform-specific: Python 3
775774

776775
def makefile(self, mode="r", buffering=None, *args, **kwargs):

src/pip/_vendor/urllib3/packages/six.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,6 @@ def reraise(tp, value, tb=None):
772772
value = None
773773
tb = None
774774

775-
776775
else:
777776

778777
def exec_(_code_, _globs_=None, _locs_=None):

src/pip/_vendor/urllib3/util/url.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ def _normalize_host(host, scheme):
279279
if scheme in NORMALIZABLE_SCHEMES:
280280
is_ipv6 = IPV6_ADDRZ_RE.match(host)
281281
if is_ipv6:
282+
# IPv6 hosts of the form 'a::b%zone' are encoded in a URL as
283+
# such per RFC 6874: 'a::b%25zone'. Unquote the ZoneID
284+
# separator as necessary to return a valid RFC 4007 scoped IP.
282285
match = ZONE_ID_RE.search(host)
283286
if match:
284287
start, end = match.span(1)
@@ -331,7 +334,7 @@ def parse_url(url):
331334
"""
332335
Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is
333336
performed to parse incomplete urls. Fields not provided will be None.
334-
This parser is RFC 3986 compliant.
337+
This parser is RFC 3986 and RFC 6874 compliant.
335338
336339
The parser logic and helper functions are based heavily on
337340
work done in the ``rfc3986`` module.

src/pip/_vendor/urllib3/util/wait.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class NoWayToWaitForSocketError(Exception):
4242
def _retry_on_intr(fn, timeout):
4343
return fn(timeout)
4444

45-
4645
else:
4746
# Old and broken Pythons.
4847
def _retry_on_intr(fn, timeout):

src/pip/_vendor/vendor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ requests==2.27.1
1111
certifi==2021.10.08
1212
chardet==4.0.0
1313
idna==3.3
14-
urllib3==1.26.9
14+
urllib3==1.26.10
1515
rich==12.2.0
1616
pygments==2.11.2
1717
typing_extensions==4.2.0

0 commit comments

Comments
 (0)