]> granicus.if.org Git - python/commitdiff
Remove unnecessary \b. It was causing the RE to miss the tailing
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sun, 24 Mar 2002 23:02:07 +0000 (23:02 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sun, 24 Mar 2002 23:02:07 +0000 (23:02 +0000)
slash on strings like "http://www.python.org/ is good".

Lib/pydoc.py

index 5b27a09aa632b455c6ab428f0414152f1ab345ab..bb702b3ed9219b9d413993ae97369d3da1cc187e 100755 (executable)
@@ -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