python-urllib3/set-RECENT_DATE-not-be-older-than-2-years.patch
si-gui a8af19fd16 fix check error by set RECENT_DATE
(cherry picked from commit 51f118394fa1cfe235b2a8705dc251542785e807)
2021-05-31 10:59:32 +08:00

26 lines
848 B
Diff

From 686ab7d843e7ad9d9782fb63f600a4942b896c2d Mon Sep 17 00:00:00 2001
From: si-gui <sunguoshuai@huawei.com>
Date: Mon, 24 May 2021 20:04:00 +0800
Subject: [PATCH] set RECENT_DATE not be older than 2 years
---
src/urllib3/connection.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/urllib3/connection.py b/src/urllib3/connection.py
index 6da1cf4..29dc4d8 100644
--- a/src/urllib3/connection.py
+++ b/src/urllib3/connection.py
@@ -57,7 +57,7 @@ port_by_scheme = {"http": 80, "https": 443}
# When it comes time to update this value as a part of regular maintenance
# (ie test_recent_date is failing) update it to ~6 months before the current date.
-RECENT_DATE = datetime.date(2019, 1, 1)
+RECENT_DATE = datetime.date(2021, 1, 1)
_CONTAINS_CONTROL_CHAR_RE = re.compile(r"[^-!#$%&'*+.^_`|~0-9a-zA-Z]")
--
2.30.0