From 9a1f39362e47a26811bcf9f0dfe6f46f3c9d6ea3 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 30 Aug 2016 21:02:06 -0400 Subject: Checkpointing --- src/mailman/commands/eml_membership.py | 10 +++++----- src/mailman/commands/tests/test_confirm.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mailman/commands') diff --git a/src/mailman/commands/eml_membership.py b/src/mailman/commands/eml_membership.py index af391fd5b..fad1cbe50 100644 --- a/src/mailman/commands/eml_membership.py +++ b/src/mailman/commands/eml_membership.py @@ -25,7 +25,7 @@ from mailman.interfaces.member import DeliveryMode, MemberRole from mailman.interfaces.workflowmanager import IWorkflowManager from mailman.interfaces.subscriptions import ISubscriptionService from mailman.interfaces.usermanager import IUserManager -from zope.component import getUtility, getAdapter +from zope.component import getAdapter, getUtility from zope.interface import implementer @@ -101,8 +101,8 @@ used. print(_('$person is already a member'), file=results) return ContinueProcessing.yes subscriber = match_subscriber(email, display_name) - getAdapter(mlist, - IWorkflowManager, name='subscribe').register(subscriber) + getAdapter( + mlist, IWorkflowManager, name='subscribe').register(subscriber) print(_('Confirmation email sent to $person'), file=results) return ContinueProcessing.yes @@ -187,8 +187,8 @@ You may be asked to confirm your request.""") '$self.name: $email is not a member of $mlist.fqdn_listname'), file=results) return ContinueProcessing.no - getAdapter(mlist, - IWorkflowManager, name='unsubscribe').register(user_address) + getAdapter( + mlist, IWorkflowManager, name='unsubscribe').register(user_address) # member.unsubscribe() person = formataddr((user.display_name, email)) # noqa print(_('Confirmation email sent to $person to leave' diff --git a/src/mailman/commands/tests/test_confirm.py b/src/mailman/commands/tests/test_confirm.py index d7414fbfa..797edcad5 100644 --- a/src/mailman/commands/tests/test_confirm.py +++ b/src/mailman/commands/tests/test_confirm.py @@ -30,7 +30,7 @@ from mailman.interfaces.usermanager import IUserManager from mailman.runners.command import CommandRunner, Results from mailman.testing.helpers import get_queue_messages, make_testable_runner from mailman.testing.layers import ConfigLayer -from zope.component import getUtility, getAdapter +from zope.component import getAdapter, getUtility class TestConfirm(unittest.TestCase): -- cgit v1.2.3-70-g09d2