summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-03-25 13:11:31 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-03-25 13:11:31 (GMT)
commit50b458fee254ff397913d49099bba35840b2fab7 (patch)
tree592fc9ac3143bb799639c568f626fd9fd0ad0378 /Lib/pydoc.py
parent1deeef243de5a0a816d09a1e04d0ff8ef7e95341 (diff)
downloadcpython-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-xLib/pydoc.py2
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