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.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mailman/runners/docs/command.rst b/src/mailman/runners/docs/command.rst
index 82ee33fbc..5cfbf7cfb 100644
--- a/src/mailman/runners/docs/command.rst
+++ b/src/mailman/runners/docs/command.rst
@@ -140,9 +140,7 @@ address, and the other is the results of his email command.
>>> len(messages)
2
- >>> from mailman.interfaces.registrar import IRegistrar
- >>> from zope.component import getUtility
- >>> registrar = getUtility(IRegistrar)
+ >>> registrar = IRegistrar(mlist)
>>> for item in messages:
... subject = item.msg['subject']
... print('Subject:', subject)