summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_unshunt.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-22 20:06:20 -0500
committerBarry Warsaw2014-12-22 20:06:20 -0500
commit286fac3f7c580dfc137ac11290a2ba5713f69472 (patch)
tree1449121ac40dca604016bdef820e32ac08964d39 /src/mailman/commands/cli_unshunt.py
parentfdd4748e2bb8da32a737aef3ba4d7705f654c729 (diff)
downloadmailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.gz
mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.zst
mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.zip
Diffstat (limited to 'src/mailman/commands/cli_unshunt.py')
-rw-r--r--src/mailman/commands/cli_unshunt.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mailman/commands/cli_unshunt.py b/src/mailman/commands/cli_unshunt.py
index 77196565b..7cfa9e4ed 100644
--- a/src/mailman/commands/cli_unshunt.py
+++ b/src/mailman/commands/cli_unshunt.py
@@ -17,9 +17,6 @@
"""The 'unshunt' command."""
-from __future__ import absolute_import, print_function, unicode_literals
-
-__metaclass__ = type
__all__ = [
'Unshunt',
]
@@ -27,11 +24,10 @@ __all__ = [
import sys
-from zope.interface import implementer
-
from mailman.config import config
from mailman.core.i18n import _
from mailman.interfaces.command import ICLISubCommand
+from zope.interface import implementer
@@ -62,7 +58,7 @@ class Unshunt:
which_queue = msgdata.get('whichq', 'in')
if not args.discard:
config.switchboards[which_queue].enqueue(msg, msgdata)
- except Exception as error:
+ except Exception:
print(_('Cannot unshunt message $filebase, skipping:\n$error'),
file=sys.stderr)
else: