From d69711cb1ef1e44d4fcd72d6a1b01ac6f3a52782 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Sun, 24 Mar 2002 23:02:07 +0000 Subject: Remove unnecessary \b. It was causing the RE to miss the tailing slash on strings like "http://www.python.org/ is good". --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/pydoc.py') 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 -- cgit v1.2.1