aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2017-07-14 02:16:23 +0200
committerJ08nY2017-07-14 02:16:23 +0200
commit0b9335e163791959390bf3c83928e5b61e912fa3 (patch)
tree775c1610634293467c5cafe2de5263148bc01aea
parent6b7b6bfe1044a5c7a548a091a49dcdd2422aaff5 (diff)
downloadmailman-pgp-0b9335e163791959390bf3c83928e5b61e912fa3.tar.gz
mailman-pgp-0b9335e163791959390bf3c83928e5b61e912fa3.tar.zst
mailman-pgp-0b9335e163791959390bf3c83928e5b61e912fa3.zip
-rw-r--r--src/mailman_pgp/workflows/key_change.py3
-rw-r--r--src/mailman_pgp/workflows/tests/test_base.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/mailman_pgp/workflows/key_change.py b/src/mailman_pgp/workflows/key_change.py
index 9e204cf..c6d3ebc 100644
--- a/src/mailman_pgp/workflows/key_change.py
+++ b/src/mailman_pgp/workflows/key_change.py
@@ -31,7 +31,6 @@ from mailman_pgp.model.address import PGPAddress
from mailman_pgp.pgp.utils import copy_headers
from mailman_pgp.pgp.wrapper import PGPWrapper
-
CHANGE_CONFIRM_REQUEST = """\
----------
TODO: this is a pgp enabled list.
@@ -80,7 +79,7 @@ class KeyChangeWorkflow(Workflow):
self.pubkey, _ = PGPKey.from_blob(value)
def _step_change_key(self):
- if self.pgp_address is None or self.pubkey is None:
+ if self.pgp_address is None or self.pubkey is None:
raise ValueError
self.push('send_key_confirm_request')
diff --git a/src/mailman_pgp/workflows/tests/test_base.py b/src/mailman_pgp/workflows/tests/test_base.py
index c59cfe0..e3cc833 100644
--- a/src/mailman_pgp/workflows/tests/test_base.py
+++ b/src/mailman_pgp/workflows/tests/test_base.py
@@ -37,8 +37,8 @@ from mailman_pgp.model.list import PGPMailingList
from mailman_pgp.pgp.tests.base import load_key
from mailman_pgp.pgp.wrapper import PGPWrapper
from mailman_pgp.testing.layers import PGPConfigLayer
-from mailman_pgp.workflows.base import (KEY_REQUEST, PGPMixin, SetPubkeyMixin,
- ConfirmPubkeyMixin)
+from mailman_pgp.workflows.base import (ConfirmPubkeyMixin, KEY_REQUEST,
+ PGPMixin, SetPubkeyMixin)
class PubkeyMixinTestSetup():