]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport nascheme's checkin of
authorMichael W. Hudson <mwh@python.net>
Mon, 25 Mar 2002 13:11:31 +0000 (13:11 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 25 Mar 2002 13:11:31 +0000 (13:11 +0000)
    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".

Lib/pydoc.py

index a90178f08f0d503b36d4dad90feece3d26538ce9..46ef319d96c39d711459af2cce2c1157a5346dab 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