summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2021-07-30 13:54:46 (GMT)
committerGitHub <noreply@github.com>2021-07-30 13:54:46 (GMT)
commitbe42c06bb01206209430f3ac08b72643dc7cad1c (patch)
tree85df7eaca19021bab89cb63f7c8022dcbe13c2fb /Doc/library/re.rst
parentea4673ed0757e9bfe8774e60cfae3313e9927b5f (diff)
downloadcpython-be42c06bb01206209430f3ac08b72643dc7cad1c.zip
cpython-be42c06bb01206209430f3ac08b72643dc7cad1c.tar.gz
cpython-be42c06bb01206209430f3ac08b72643dc7cad1c.tar.bz2
Update URLs in comments and metadata to use HTTPS (GH-27458)
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r--Doc/library/re.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 9abbd8b..950012a 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -931,8 +931,8 @@ form.
This is useful if you want to match an arbitrary literal string that may
have regular expression metacharacters in it. For example::
- >>> print(re.escape('http://www.python.org'))
- http://www\.python\.org
+ >>> print(re.escape('https://www.python.org'))
+ https://www\.python\.org
>>> legal_chars = string.ascii_lowercase + string.digits + "!#$%&'*+-.^_`|~:"
>>> print('[%s]+' % re.escape(legal_chars))