From 7d75ff06f2601dbc43327ccdb383a8ecdbf73720 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 2 Aug 2017 19:35:48 +0200 Subject: qa. --- src/mailman_pgp/commands/eml_key.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py index 4f62050..0d5fa1e 100644 --- a/src/mailman_pgp/commands/eml_key.py +++ b/src/mailman_pgp/commands/eml_key.py @@ -36,8 +36,8 @@ from mailman_pgp.pgp.mime import MIMEWrapper from mailman_pgp.pgp.wrapper import PGPWrapper from mailman_pgp.utils.email import get_email from mailman_pgp.workflows.key_change import (CHANGE_CONFIRM_REQUEST, - KeyChangeWorkflow, - KeyChangeModWorkflow) + KeyChangeModWorkflow, + KeyChangeWorkflow) from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST @@ -169,8 +169,8 @@ def _cmd_confirm(pgp_list, mlist, msg, msgdata, arguments, results): print('Wrong token.', file=results) return ContinueProcessing.no - if pendable.get('type') in (KeyChangeWorkflow.pendable_class().PEND_TYPE, - KeyChangeModWorkflow.pendable_class().PEND_TYPE): + if pendable.get('type') in (KeyChangeWorkflow.name, + KeyChangeModWorkflow.name): expecting = CHANGE_CONFIRM_REQUEST.format(pendable.get('fingerprint'), token) else: -- cgit v1.2.3-70-g09d2