summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-08-08 11:00:17 (GMT)
committerGitHub <noreply@github.com>2022-08-08 11:00:17 (GMT)
commitcc9160a29bc3356ced92348bcd8e6668c67167c9 (patch)
tree17693f24e332b5c9fdab21801e912b086c498f5b /Lib
parent78a85a34ea2583b8489eeafba5b2018fa2048a4d (diff)
downloadcpython-cc9160a29bc3356ced92348bcd8e6668c67167c9.zip
cpython-cc9160a29bc3356ced92348bcd8e6668c67167c9.tar.gz
cpython-cc9160a29bc3356ced92348bcd8e6668c67167c9.tar.bz2
gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/posixpath.py2
-rw-r--r--Lib/test/test_descrtut.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index a7b2f2d..5e1ebe3 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -364,7 +364,7 @@ except ImportError:
initial_slashes = path.startswith(sep)
# POSIX allows one or two initial slashes, but treats three or more
# as single slash.
- # (see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13)
+ # (see https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13)
if (initial_slashes and
path.startswith(sep*2) and not path.startswith(sep*3)):
initial_slashes = 2
diff --git a/Lib/test/test_descrtut.py b/Lib/test/test_descrtut.py
index b4158eb..7796031 100644
--- a/Lib/test/test_descrtut.py
+++ b/Lib/test/test_descrtut.py
@@ -1,7 +1,7 @@
# This contains most of the executable examples from Guido's descr
# tutorial, once at
#
-# http://www.python.org/2.2/descrintro.html
+# https://www.python.org/download/releases/2.2.3/descrintro/
#
# A few examples left implicit in the writeup were fleshed out, a few were
# skipped due to lack of interest (e.g., faking super() by hand isn't