summaryrefslogtreecommitdiff
path: root/src/mailman/runners/docs/command.rst
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/runners/docs/command.rst')
-rw-r--r--src/mailman/runners/docs/command.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mailman/runners/docs/command.rst b/src/mailman/runners/docs/command.rst
index fec0d628b..2243d4ff4 100644
--- a/src/mailman/runners/docs/command.rst
+++ b/src/mailman/runners/docs/command.rst
@@ -141,9 +141,8 @@ address, and the other is the results of his email command.
2
>>> from mailman.interfaces.subscriptions import ISubscriptionManager
- >>> from zope.component import getAdapter
- >>> manager = getAdapter(mlist, ISubscriptionManager, 'subscribe')
+ >>> manager = ISubscriptionManager(mlist)
>>> for item in messages:
... subject = item.msg['subject']
... print('Subject:', subject)