summaryrefslogtreecommitdiff
path: root/src/mailman/runners/docs
diff options
context:
space:
mode:
authorJ08nY2017-08-07 19:00:49 +0200
committerJ08nY2017-08-07 19:00:49 +0200
commitee9da27283ffb7adc836f764f1442cd06e3fb2a5 (patch)
tree2b687f39714580b1de70baf9e3dd9957326c4989 /src/mailman/runners/docs
parentd107fd41f03b57f7731b60bb7ba921febc3ce3b9 (diff)
parentb902d7858d8302d248add89a5983c521c3581c4c (diff)
downloadmailman-plugin.tar.gz
mailman-plugin.tar.zst
mailman-plugin.zip
Diffstat (limited to 'src/mailman/runners/docs')
-rw-r--r--src/mailman/runners/docs/command.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/runners/docs/command.rst b/src/mailman/runners/docs/command.rst
index 0dbce2ee1..73bacf5b4 100644
--- a/src/mailman/runners/docs/command.rst
+++ b/src/mailman/runners/docs/command.rst
@@ -166,8 +166,8 @@ Similarly, to leave a mailing list, the user need only email the ``-leave`` or
...
... """)
- >>> from mailman.interfaces.mailinglist import SubscriptionPolicy
- >>> mlist.unsubscription_policy = SubscriptionPolicy.open
+ >>> from mailman.workflows.unsubscription import OpenUnsubscriptionPolicy
+ >>> mlist.unsubscription_policy = OpenUnsubscriptionPolicy
>>> filebase = inject_message(
... mlist, msg, switchboard='command', subaddress='leave')
>>> command.run()