Mercurial > p > roundup > code
diff roundup/templatebuilder.py @ 598:b55fb6d88a0d
makeHtmlBase: re.sub under python 2.2 didn't replace '.', string.replace does.
| author | Engelbert Gruber <grubert@users.sourceforge.net> |
|---|---|
| date | Tue, 05 Feb 2002 09:59:05 +0000 |
| parents | bdc2ea127ae9 |
| children |
line wrap: on
line diff
--- a/roundup/templatebuilder.py Tue Feb 05 09:49:56 2002 +0000 +++ b/roundup/templatebuilder.py Tue Feb 05 09:59:05 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: templatebuilder.py,v 1.13 2001-11-22 15:46:42 jhermann Exp $ +# $Id: templatebuilder.py,v 1.14 2002-02-05 09:59:05 grubert Exp $ import errno, re __doc__ = """ @@ -24,7 +24,7 @@ preamble = """ # Do Not Edit (Unless You Want To) -# This file automagically generated by roundup.htmldata.makeHtmlBase +# This file automagically generated by roundup.templatebuilder.makeHtmlBase # """ @@ -41,7 +41,7 @@ for file in filelist: # skip the backup files created by richard's vim if file[-1] == '~': continue - mangled_name = os.path.basename(re.sub(r'\.', 'DOT', file)) + mangled_name = os.path.basename(file).replace('.','DOT') fd.write('%s = """'%mangled_name) fd.write(re.sub(r'\$((Id|File|Log).*?)\$', r'dollar\1dollar', open(file).read(), re.I)) @@ -89,6 +89,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.13 2001/11/22 15:46:42 jhermann +# Added module docstrings to all modules. +# # Revision 1.12 2001/11/14 21:35:21 richard # . users may attach files to issues (and support in ext) through the web now #
