mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-38786: Add parsing of https links to pydoc (GH-17143)
This commit is contained in:
parent
d89cea15ad
commit
61289d4366
4 changed files with 14 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue