diff --git a/Lib/pydoc.py b/Lib/pydoc.py index dc3377d68f8caa4..f172700a15f9d94 100644 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -584,7 +584,7 @@ def markup(self, text, escape=None, funcs={}, classes={}, methods={}): 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+))')