Increase chardet upper limit to 7
This commit is contained in:
parent
b8f9ceff6d
commit
5963696f2d
2 changed files with 44 additions and 0 deletions
39
0001-Increase-chardet-upper-limit-to-7.patch
Normal file
39
0001-Increase-chardet-upper-limit-to-7.patch
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
From bbce29105ed06418e58f4f33c6adff7aea1ca400 Mon Sep 17 00:00:00 2001
|
||||
From: Amin Vakil <info@aminvakil.com>
|
||||
Date: Sun, 22 Feb 2026 19:37:16 +0330
|
||||
Subject: [PATCH] Increase chardet upper limit to 7
|
||||
|
||||
---
|
||||
setup.py | 2 +-
|
||||
src/requests/__init__.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index ff65d391..3c55e181 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -98,7 +98,7 @@ setup(
|
||||
extras_require={
|
||||
"security": [],
|
||||
"socks": ["PySocks>=1.5.6, !=1.5.7"],
|
||||
- "use_chardet_on_py3": ["chardet>=3.0.2,<6"],
|
||||
+ "use_chardet_on_py3": ["chardet>=3.0.2,<7"],
|
||||
},
|
||||
project_urls={
|
||||
"Documentation": "https://requests.readthedocs.io",
|
||||
diff --git a/src/requests/__init__.py b/src/requests/__init__.py
|
||||
index 051cda13..9a80c625 100644
|
||||
--- a/src/requests/__init__.py
|
||||
+++ b/src/requests/__init__.py
|
||||
@@ -76,7 +76,7 @@ def check_compatibility(urllib3_version, chardet_version, charset_normalizer_ver
|
||||
major, minor, patch = chardet_version.split(".")[:3]
|
||||
major, minor, patch = int(major), int(minor), int(patch)
|
||||
# chardet_version >= 3.0.2, < 6.0.0
|
||||
- assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0)
|
||||
+ assert (3, 0, 2) <= (major, minor, patch) < (7, 0, 0)
|
||||
elif charset_normalizer_version:
|
||||
major, minor, patch = charset_normalizer_version.split(".")[:3]
|
||||
major, minor, patch = int(major), int(minor), int(patch)
|
||||
--
|
||||
2.53.0
|
||||
|
||||
|
|
@ -25,6 +25,11 @@ Patch: system-certs.patch
|
|||
# This change is backported also into RHEL 9.4 (via CS)
|
||||
Patch: support_IPv6_CIDR_in_no_proxy.patch
|
||||
|
||||
# Increase chardet upper limit to 7
|
||||
# https://github.com/psf/requests/commit/4bd79e397304d46dfccd76f36c07f66c0295ff82
|
||||
# Backported to v2.32.5
|
||||
Patch: 0001-Increase-chardet-upper-limit-to-7.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
%if %{with tests}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue