summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-24 23:02:07 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-24 23:02:07 (GMT)
commitd69711cb1ef1e44d4fcd72d6a1b01ac6f3a52782 (patch)
treeef9d83e8a3287d6edc91a4b496ba2b4c0df4f571 /Lib
parent5ee24ae98d191d5a645c2cf67487285de2f2651b (diff)
downloadcpython-d69711cb1ef1e44d4fcd72d6a1b01ac6f3a52782.zip
cpython-d69711cb1ef1e44d4fcd72d6a1b01ac6f3a52782.tar.gz
cpython-d69711cb1ef1e44d4fcd72d6a1b01ac6f3a52782.tar.bz2
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')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 5b27a09..bb702b3 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