mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Update URLs in comments and metadata to use HTTPS (GH-27458)
This commit is contained in:
parent
ea4673ed07
commit
be42c06bb0
39 changed files with 58 additions and 58 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue