summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/docs')
-rw-r--r--src/mailman/commands/docs/create.txt3
-rw-r--r--src/mailman/commands/docs/remove.txt3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/commands/docs/create.txt b/src/mailman/commands/docs/create.txt
index 349714a67..cf1557210 100644
--- a/src/mailman/commands/docs/create.txt
+++ b/src/mailman/commands/docs/create.txt
@@ -37,7 +37,8 @@ the mailing list and domain will be created.
Now both the domain and the mailing list exist in the database.
>>> from mailman.interfaces.listmanager import IListManager
- >>> list_manager = IListManager(config)
+ >>> from zope.component import getUtility
+ >>> list_manager = getUtility(IListManager)
>>> list_manager.get('test@example.xx')
<mailing list "test@example.xx" at ...>
diff --git a/src/mailman/commands/docs/remove.txt b/src/mailman/commands/docs/remove.txt
index 667b5d8c1..3f5c59bf4 100644
--- a/src/mailman/commands/docs/remove.txt
+++ b/src/mailman/commands/docs/remove.txt
@@ -9,7 +9,8 @@ A system administrator can remove mailing lists by the command line.
<mailing list "test@example.com" at ...>
>>> from mailman.interfaces.listmanager import IListManager
- >>> list_manager = IListManager(config)
+ >>> from zope.component import getUtility
+ >>> list_manager = getUtility(IListManager)
>>> list_manager.get('test@example.com')
<mailing list "test@example.com" at ...>