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

@ -732,7 +732,7 @@ class ServerHTMLDoc(pydoc.HTMLDoc):
# hyperlinking of arbitrary strings being used as method
# names. Only methods with names consisting of word characters
# and '.'s are hyperlinked.
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|\.)+))\b')