From: Neil Schemenauer Date: Sun, 24 Mar 2002 23:02:07 +0000 (+0000) Subject: Remove unnecessary \b. It was causing the RE to miss the tailing X-Git-Tag: v2.3c1~6353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d69711cb1ef1e44d4fcd72d6a1b01ac6f3a52782;p=python 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 5b27a09aa6..bb702b3ed9 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -441,7 +441,7 @@ TT { font-family: lucidatypewriter, lucida console, courier } 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