bpo-38786: Add parsing of https links to pydoc (GH-17143)

This commit is contained in:
Kirill 2019-11-13 19:13:53 +03:00 committed by Tal Einat
parent d89cea15ad
commit 61289d4366
4 changed files with 14 additions and 2 deletions

View file

@ -585,7 +585,7 @@ class HTMLDoc(Doc):
escape = escape or self.escape
results = []
here = 0
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
pattern = re.compile(r'\b((http|https|ftp)://\S+[\w/]|'
r'RFC[- ]?(\d+)|'
r'PEP[- ]?(\d+)|'
r'(self\.)?(\w+))')