85d9ed5010
Backports https://github.com/urllib3/urllib3/pull/1645 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1727796
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 19b02fee383647ede591c0368e6ac437c832b871 Mon Sep 17 00:00:00 2001
|
|
From: Seth Michael Larson <sethmichaellarson@gmail.com>
|
|
Date: Tue, 2 Jul 2019 23:08:27 -0500
|
|
Subject: [PATCH] Update RECENT_DATE to 2019-1-1
|
|
|
|
---
|
|
src/urllib3/connection.py | 8 +++-----
|
|
1 file changed, 3 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/urllib3/connection.py b/src/urllib3/connection.py
|
|
index 57c58fe..96f5d28 100644
|
|
--- a/src/urllib3/connection.py
|
|
+++ b/src/urllib3/connection.py
|
|
@@ -56,11 +56,9 @@ port_by_scheme = {
|
|
'https': 443,
|
|
}
|
|
|
|
-# When updating RECENT_DATE, move it to within two years of the current date,
|
|
-# and not less than 6 months ago.
|
|
-# Example: if Today is 2018-01-01, then RECENT_DATE should be any date on or
|
|
-# after 2016-01-01 (today - 2 years) AND before 2017-07-01 (today - 6 months)
|
|
-RECENT_DATE = datetime.date(2017, 6, 30)
|
|
+# 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)
|
|
|
|
|
|
class DummyConnection(object):
|
|
--
|
|
2.21.0
|
|
|