summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw2000-09-17 06:40:42 +0000
committerbwarsaw2000-09-17 06:40:42 +0000
commitb8711bd597435d0bb95aef3a0c9f2dedd467b3c5 (patch)
tree692965525403d07132d2724c20c30c987de32381 /Mailman/Utils.py
parentc2f1d5d37970d37abf6ae71e0b16f4e15538ced3 (diff)
downloadmailman-b8711bd597435d0bb95aef3a0c9f2dedd467b3c5.tar.gz
mailman-b8711bd597435d0bb95aef3a0c9f2dedd467b3c5.tar.zst
mailman-b8711bd597435d0bb95aef3a0c9f2dedd467b3c5.zip
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 734f20cb4..a1652026f 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -473,13 +473,15 @@ class SafeDict(UserDict):
return '<Missing key: %s>' % `key`
-def maketext(templatefile, dict, raw=0):
+def maketext(templatefile, dict=None, raw=0):
"""Make some text from a template file.
Reads the `templatefile', relative to mm_cfg.TEMPLATE_DIR, does string
substitution by interpolating in the `dict', and if `raw' is false,
wraps/fills the resulting text by calling wrap().
"""
+ if dict is None:
+ dict = {}
file = os.path.join(mm_cfg.TEMPLATE_DIR, templatefile)
fp = open(file)
template = fp.read()