From eb50f20ee6c4722b3e05366fa7c6ff7d0451bd79 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Fri, 2 Mar 2001 00:50:12 +0000 Subject: InitTemplates(): Copy both the .html and the .txt files into the list-specific language templates directory. --- Mailman/HTMLFormatter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Mailman/HTMLFormatter.py') diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index c0bc75284..a6c53446d 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -426,6 +426,7 @@ class HTMLFormatter: os.makedirs(dstdir, 02775) finally: os.umask(omask) - # Now copy all the .html files over - for file in [f for f in os.listdir(srcdir) if f.endswith('.html')]: + # Now copy all the .html and .txt files over + for file in [f for f in os.listdir(srcdir) + if f.endswith('.html') or f.endswith('.txt')]: shutil.copy(os.path.join(srcdir, file), dstdir) -- cgit v1.2.3-70-g09d2