diff options
author | Michael W. Hudson <mwh@python.net> | 2002-03-25 13:11:31 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-03-25 13:11:31 (GMT) |
commit | 50b458fee254ff397913d49099bba35840b2fab7 (patch) | |
tree | 592fc9ac3143bb799639c568f626fd9fd0ad0378 /Lib/pydoc.py | |
parent | 1deeef243de5a0a816d09a1e04d0ff8ef7e95341 (diff) | |
download | cpython-50b458fee254ff397913d49099bba35840b2fab7.zip cpython-50b458fee254ff397913d49099bba35840b2fab7.tar.gz cpython-50b458fee254ff397913d49099bba35840b2fab7.tar.bz2 |
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".
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |