summaryrefslogtreecommitdiff
path: root/dev-python/requests/files/requests-2.28.0-drop-dependency-warnings.patch
blob: ec3634966a07f25a6fcfdb4cd938d0f958e1f31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Minimal patch to avoid often rebasing.

We already have tools to try check for these (`pip check` obviously, but also
app-portage/gpyutils provides gpy-verify-deps).
--- a/requests/__init__.py
+++ b/requests/__init__.py
@@ -106,13 +106,7 @@ try:
         urllib3.__version__, chardet_version, charset_normalizer_version
     )
 except (AssertionError, ValueError):
-    warnings.warn(
-        "urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
-        "version!".format(
-            urllib3.__version__, chardet_version, charset_normalizer_version
-        ),
-        RequestsDependencyWarning,
-    )
+    pass
 
 # Attempt to enable urllib3's fallback for SNI support
 # if the standard library doesn't support SNI or the