[Python-checkins] CVS: python/dist/src/Doc/tools buildindex.py,1.10,1.10.4.1

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Fri, 3 Mar 2000 11:30:13 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Doc/tools
In directory weyr:/home/fdrake/projects/python/Doc-152p2/tools

Modified Files:
      Tag: release152p1-patches
	buildindex.py 
Log Message:

Fix up regular expression that tosses <tt...> and </tt> from the
entry; it didn't catch all cases so lots of stuff got indexed under
'<' instead of the appropriate letter.


Index: buildindex.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/tools/buildindex.py,v
retrieving revision 1.10
retrieving revision 1.10.4.1
diff -C2 -r1.10 -r1.10.4.1
*** buildindex.py	1999/02/24 16:36:48	1.10
--- buildindex.py	2000/03/03 16:30:11	1.10.4.1
***************
*** 1,5 ****
  #! /usr/bin/env python
  
! __version__ = '$Revision: 1.10 $'
  
  import os
--- 1,5 ----
  #! /usr/bin/env python
  
! __version__ = '$Revision: 1.10.4.1 $'
  
  import os
***************
*** 78,82 ****
  
  
! _rmtt = re.compile(r"(.*)<tt(?: class=[a-z0-9]+)?>(.*)</tt>(.*)$",
                     re.IGNORECASE)
  _rmparens = re.compile(r"\(\)")
--- 78,82 ----
  
  
! _rmtt = re.compile(r"""(.*)<tt(?: class=['"][a-z0-9]+["'])?>(.*)</tt>(.*)$""",
                     re.IGNORECASE)
  _rmparens = re.compile(r"\(\)")