summaryrefslogtreecommitdiff
path: root/tools/vendoring/patches/urllib3.patch
diff options
context:
space:
mode:
authorPradyun Gedam <pgedam@bloomberg.net>2022-04-22 15:46:11 +0100
committerPradyun Gedam <pgedam@bloomberg.net>2022-04-22 15:50:29 +0100
commit377d642384befe47e96e87550d9a12cbe8f13413 (patch)
treed474fe20cb825df21cb0988dc973facc73ab02d0 /tools/vendoring/patches/urllib3.patch
parentdfcac4add2801ea078f976b8fba3b24fa246c1ce (diff)
downloadpip-377d642384befe47e96e87550d9a12cbe8f13413.tar.gz
Upgrade rich to 12.2.0
Diffstat (limited to 'tools/vendoring/patches/urllib3.patch')
-rw-r--r--tools/vendoring/patches/urllib3.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/vendoring/patches/urllib3.patch b/tools/vendoring/patches/urllib3.patch
index 747b81e1d..3ca7226fa 100644
--- a/tools/vendoring/patches/urllib3.patch
+++ b/tools/vendoring/patches/urllib3.patch
@@ -27,37 +27,3 @@ index c43146279..4cded53f6 100644
+ pyopenssl.inject_into_urllib3()
except ImportError:
pass
-
-diff --git a/src/pip/_vendor/urllib3/response.py b/src/pip/_vendor/urllib3/response.py
-index 38693f4fc..776e49dd2 100644
---- a/src/pip/_vendor/urllib3/response.py
-+++ b/src/pip/_vendor/urllib3/response.py
-@@ -7,10 +7,7 @@ from contextlib import contextmanager
- from socket import error as SocketError
- from socket import timeout as SocketTimeout
-
--try:
-- import brotli
--except ImportError:
-- brotli = None
-+brotli = None
-
- from ._collections import HTTPHeaderDict
- from .connection import BaseSSLError, HTTPException
-diff --git a/src/pip/_vendor/urllib3/util/request.py b/src/pip/_vendor/urllib3/util/request.py
-index 25103383e..330766ef4 100644
---- a/src/pip/_vendor/urllib3/util/request.py
-+++ b/src/pip/_vendor/urllib3/util/request.py
-@@ -13,12 +13,6 @@ SKIP_HEADER = "@@@SKIP_HEADER@@@"
- SKIPPABLE_HEADERS = frozenset(["accept-encoding", "host", "user-agent"])
-
- ACCEPT_ENCODING = "gzip,deflate"
--try:
-- import brotli as _unused_module_brotli # noqa: F401
--except ImportError:
-- pass
--else:
-- ACCEPT_ENCODING += ",br"
-
- _FAILEDTELL = object()
-