[Python-checkins] gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650) (GH-95780)

ambv webhook-mailer at python.org
Wed Aug 10 06:55:54 EDT 2022


https://github.com/python/cpython/commit/a42215c7e1e5a209b1bfb4cd02b52c7c1999f5cf
commit: a42215c7e1e5a209b1bfb4cd02b52c7c1999f5cf
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2022-08-10T12:55:50+02:00
summary:

gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650) (GH-95780)

(cherry picked from commit cc9160a29bc3356ced92348bcd8e6668c67167c9)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
M Doc/whatsnew/2.5.rst
M Lib/posixpath.py
M Lib/test/test_descrtut.py
M Tools/c-analyzer/c_parser/parser/__init__.py

diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst
index ea785121db90..6c216826fee0 100644
--- a/Doc/whatsnew/2.5.rst
+++ b/Doc/whatsnew/2.5.rst
@@ -2019,7 +2019,7 @@ https://www.sqlite.org.
 
 .. seealso::
 
-   http://www.pysqlite.org
+   https://www.pysqlite.org
       The pysqlite web page.
 
    https://www.sqlite.org
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index a7b2f2d64824..5e1ebe3293d8 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -364,7 +364,7 @@ def normpath(path):
         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 e01a31a74695..9aefda3d521b 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
diff --git a/Tools/c-analyzer/c_parser/parser/__init__.py b/Tools/c-analyzer/c_parser/parser/__init__.py
index b5eae2ed92d0..4c121adb5168 100644
--- a/Tools/c-analyzer/c_parser/parser/__init__.py
+++ b/Tools/c-analyzer/c_parser/parser/__init__.py
@@ -12,7 +12,7 @@
 
 * ...
 
-(see: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf)
+(see: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf)
 
 We have taken advantage of the elements of the C grammar that are used
 only in a few limited contexts, mostly as delimiters.  They allow us to



More information about the Python-checkins mailing list