From: Michael W. Hudson Date: Mon, 25 Mar 2002 13:11:31 +0000 (+0000) Subject: backport nascheme's checkin of X-Git-Tag: v2.2.1c2~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50b458fee254ff397913d49099bba35840b2fab7;p=thirdparty%2FPython%2Fcpython.git 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". --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index a90178f08f0d..46ef319d96c3 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