mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +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
|
@ -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+))')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue