summaryrefslogtreecommitdiff
path: root/src/mailman/commands
diff options
context:
space:
mode:
authorBarry Warsaw2017-01-01 17:25:29 -0500
committerBarry Warsaw2017-01-01 17:28:37 -0500
commite3d6c34b7d02b925cb8c59fa9e1df24741fc46ee (patch)
treee6e27c9dec4557dc46c4b8ffd99bf556da4ed4ed /src/mailman/commands
parentc786a77c3b82932facd63fabe3144f9099f1ea51 (diff)
downloadmailman-e3d6c34b7d02b925cb8c59fa9e1df24741fc46ee.tar.gz
mailman-e3d6c34b7d02b925cb8c59fa9e1df24741fc46ee.tar.zst
mailman-e3d6c34b7d02b925cb8c59fa9e1df24741fc46ee.zip
Implement caching suffix list with in-tree fallback.
Also: * Change doctest cleanups to be an ExitStack. * Added [dmarc]cache_lifetime setting. * Cleanup pass through dmarc-mitigation.rst. * Be sure the cached org domain file is cleaned up when the world is reset.
Diffstat (limited to 'src/mailman/commands')
-rw-r--r--src/mailman/commands/docs/aliases.rst2
-rw-r--r--src/mailman/commands/docs/info.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/commands/docs/aliases.rst b/src/mailman/commands/docs/aliases.rst
index 75a9d3c11..31fda21e4 100644
--- a/src/mailman/commands/docs/aliases.rst
+++ b/src/mailman/commands/docs/aliases.rst
@@ -34,7 +34,7 @@ write the appropriate files to a temporary directory.
>>> import os, shutil, tempfile
>>> output_directory = tempfile.mkdtemp()
- >>> cleanups.append((shutil.rmtree, output_directory))
+ >>> ignore = cleanups.callback(shutil.rmtree, output_directory)
>>> FakeArgs.directory = output_directory
>>> mlist = create_list('test@example.com')
diff --git a/src/mailman/commands/docs/info.rst b/src/mailman/commands/docs/info.rst
index 5cea9ee2c..6fce70783 100644
--- a/src/mailman/commands/docs/info.rst
+++ b/src/mailman/commands/docs/info.rst
@@ -51,7 +51,7 @@ system paths that Mailman is using.
... [mailman]
... layout: fhs
... """)
- >>> cleanups.append((config.pop, 'fhs'))
+ >>> ignore = cleanups.callback(config.pop, 'fhs')
>>> config.create_paths = True
The `Filesystem Hierarchy Standard`_ layout is the same everywhere by