summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/commands/docs/membership.rst1
-rw-r--r--src/mailman/runners/docs/command.rst2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/commands/docs/membership.rst b/src/mailman/commands/docs/membership.rst
index 5799e1e17..18c473c5b 100644
--- a/src/mailman/commands/docs/membership.rst
+++ b/src/mailman/commands/docs/membership.rst
@@ -223,6 +223,7 @@ address for the list, she is immediately removed.
>>> from mailman.interfaces.mailinglist import SubscriptionPolicy
>>> mlist_2.unsubscription_policy = SubscriptionPolicy.open
+ >>> mlist.unsubscription_policy = SubscriptionPolicy.open
>>> results = Results()
>>> print(leave.process(mlist_2, msg, {}, (), results))
ContinueProcessing.yes
diff --git a/src/mailman/runners/docs/command.rst b/src/mailman/runners/docs/command.rst
index 2243d4ff4..0dbce2ee1 100644
--- a/src/mailman/runners/docs/command.rst
+++ b/src/mailman/runners/docs/command.rst
@@ -167,7 +167,7 @@ Similarly, to leave a mailing list, the user need only email the ``-leave`` or
... """)
>>> from mailman.interfaces.mailinglist import SubscriptionPolicy
- >>> mlist.unsubscribe_policy = SubscriptionPolicy.open
+ >>> mlist.unsubscription_policy = SubscriptionPolicy.open
>>> filebase = inject_message(
... mlist, msg, switchboard='command', subaddress='leave')
>>> command.run()