summaryrefslogtreecommitdiff
path: root/src/mailman/rules/docs/loop.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/docs/loop.txt')
-rw-r--r--src/mailman/rules/docs/loop.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/rules/docs/loop.txt b/src/mailman/rules/docs/loop.txt
index 5015d3d95..927df0e9b 100644
--- a/src/mailman/rules/docs/loop.txt
+++ b/src/mailman/rules/docs/loop.txt
@@ -5,7 +5,8 @@ Posting loops
To avoid a posting loop, Mailman has a rule to check for the existence of an
X-BeenThere header with the value of the list's posting address.
- >>> mlist = config.db.list_manager.create('_xtest@example.com')
+ >>> from mailman.app.lifecycle import create_list
+ >>> mlist = create_list('_xtest@example.com')
>>> rule = config.rules['loop']
>>> print rule.name
loop