From 50b458fee254ff397913d49099bba35840b2fab7 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 25 Mar 2002 13:11:31 +0000 Subject: backport nascheme's checkin of revision 1.59 of pydoc.py 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(-) diff --git a/Lib/pydoc.py b/Lib/pydoc.py index a90178f..46ef319d 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 v0.12