aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/commands
diff options
context:
space:
mode:
authorJ08nY2017-07-11 21:03:01 +0200
committerJ08nY2017-07-11 21:03:01 +0200
commit32cbc0b7da7e62fb4acdd4ce9e484a7109a32317 (patch)
tree152d83a34962aac72fb8d33956c3b6639b6dd207 /src/mailman_pgp/commands
parent77b63eaae46697b24fe4cc604a36b869619b4638 (diff)
downloadmailman-pgp-32cbc0b7da7e62fb4acdd4ce9e484a7109a32317.tar.gz
mailman-pgp-32cbc0b7da7e62fb4acdd4ce9e484a7109a32317.tar.zst
mailman-pgp-32cbc0b7da7e62fb4acdd4ce9e484a7109a32317.zip
Diffstat (limited to 'src/mailman_pgp/commands')
-rw-r--r--src/mailman_pgp/commands/eml_key.py4
-rw-r--r--src/mailman_pgp/commands/tests/test_key.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py
index e9b5e19..15db0b1 100644
--- a/src/mailman_pgp/commands/eml_key.py
+++ b/src/mailman_pgp/commands/eml_key.py
@@ -74,7 +74,8 @@ def _cmd_set(pgp_list, mlist, msg, msgdata, arguments, results):
try:
ISubscriptionManager(mlist).confirm(token)
print('Key succesfully set.', file=results)
- print('Key fingerprint: {}'.format(pgp_address.key.fingerprint), file=results)
+ print('Key fingerprint: {}'.format(pgp_address.key.fingerprint),
+ file=results)
except LookupError:
print('Wrong token.', file=results)
@@ -161,7 +162,6 @@ class KeyCommand:
argument_description = ARGUMENTS
short_description = ''
description = """\
-
"""
def process(self, mlist, msg, msgdata, arguments, results):
diff --git a/src/mailman_pgp/commands/tests/test_key.py b/src/mailman_pgp/commands/tests/test_key.py
index 8b44011..95f9766 100644
--- a/src/mailman_pgp/commands/tests/test_key.py
+++ b/src/mailman_pgp/commands/tests/test_key.py
@@ -24,7 +24,7 @@ from mailman.email.message import Message
from mailman.interfaces.subscriptions import ISubscriptionManager
from mailman.interfaces.usermanager import IUserManager
from mailman.runners.command import CommandRunner
-from mailman.testing.helpers import make_testable_runner, get_queue_messages
+from mailman.testing.helpers import get_queue_messages, make_testable_runner
from mailman.utilities.datetime import now
from zope.component import getUtility
@@ -102,7 +102,7 @@ class TestPreSubscription(unittest.TestCase):
with transaction() as t:
pgp_address = PGPAddress(bart)
- pgp_address.key =bart_key.pubkey
+ pgp_address.key = bart_key.pubkey
t.add(pgp_address)
confirm_message = Message()