commit | d69711cb1ef1e44d4fcd72d6a1b01ac6f3a52782 | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Sun Mar 24 23:02:07 2002 +0000 |
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Sun Mar 24 23:02:07 2002 +0000 |
tree | ef9d83e8a3287d6edc91a4b496ba2b4c0df4f571 | |
parent | 5ee24ae98d191d5a645c2cf67487285de2f2651b [diff] |
Remove unnecessary \b. It was causing the RE to miss the tailing slash on strings like "http://www.python.org/ is good".
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 5b27a09..bb702b3 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py
@@ -441,7 +441,7 @@ pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|' r'RFC[- ]?(\d+)|' r'PEP[- ]?(\d+)|' - r'(self\.)?(\w+))\b') + r'(self\.)?(\w+))') while 1: match = pattern.search(text, here) if not match: break