summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_withlist.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-05-01 17:51:32 -0400
committerBarry Warsaw2016-05-01 17:51:32 -0400
commit8163536d132f25fd4e0a5e5c15a7f6c22e05672f (patch)
treedc639ca0c53c48c38be27aa358ac7d4e4f6a662d /src/mailman/commands/cli_withlist.py
parentdd659b75659f8727425d3102777b850bb32e11be (diff)
downloadmailman-8163536d132f25fd4e0a5e5c15a7f6c22e05672f.tar.gz
mailman-8163536d132f25fd4e0a5e5c15a7f6c22e05672f.tar.zst
mailman-8163536d132f25fd4e0a5e5c15a7f6c22e05672f.zip
Diffstat (limited to 'src/mailman/commands/cli_withlist.py')
-rw-r--r--src/mailman/commands/cli_withlist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/commands/cli_withlist.py b/src/mailman/commands/cli_withlist.py
index 127308a05..d3df6dad7 100644
--- a/src/mailman/commands/cli_withlist.py
+++ b/src/mailman/commands/cli_withlist.py
@@ -217,8 +217,8 @@ class Withlist:
if len(history_file_template) > 0:
# Expand substitutions.
substitutions = {
- key.lower(): getattr(config, key)
- for key in dir(config) if key.endswith('_DIR')
+ key.lower(): value
+ for key, value in config.paths.items()
}
history_file = Template(
history_file_template).safe_substitute(substitutions)