Browse Source

[libs] Removing another chardet dependency in requests

Romain Rigaux 4 years ago
parent
commit
51401b8667
1 changed files with 5 additions and 5 deletions
  1. 5 5
      desktop/core/ext-py/requests-2.25.1/requests/__init__.py

+ 5 - 5
desktop/core/ext-py/requests-2.25.1/requests/__init__.py

@@ -61,11 +61,11 @@ def check_compatibility(urllib3_version):
     assert minor >= 21
     assert minor >= 21
     assert minor <= 26
     assert minor <= 26
 
 
-    # Check chardet for compatibility.
-    major, minor, patch = chardet_version.split('.')[:3]
-    major, minor, patch = int(major), int(minor), int(patch)
-    # chardet >= 3.0.2, < 5.0.0
-    assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0)
+    ## Check chardet for compatibility.
+    # major, minor, patch = chardet_version.split('.')[:3]
+    # major, minor, patch = int(major), int(minor), int(patch)
+    ## chardet >= 3.0.2, < 5.0.0
+    # assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0)
 
 
 
 
 def _check_cryptography(cryptography_version):
 def _check_cryptography(cryptography_version):