summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 46b01d864..6f0ca661d 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -628,7 +628,10 @@ class SafeDict(UserDict):
This is used in maketext so that editing templates is a bit more robust.
"""
def __init__(self, d):
- UserDict.__init__(self, d)
+ # optional initial dictionary is a Python 1.5.2-ism. Do it this way
+ # for portability
+ UserDict.__init__(self)
+ self.update(d)
def __getitem__(self, key):
try: