From 658fad42b04420962e6ac478247411ee77483d93 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 25 Apr 2012 22:08:22 -0400 Subject: General code cleanup. - Add explicit dependency on zope.event in setup.py. - Use Python 3 compatible syntax for specifying that a class implements an interface, i.e. the @implementer class decorator. - print_function futures. - Whitespace normalization. --- src/mailman/commands/cli_import.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mailman/commands/cli_import.py') diff --git a/src/mailman/commands/cli_import.py b/src/mailman/commands/cli_import.py index 716a8ede1..f6c016585 100644 --- a/src/mailman/commands/cli_import.py +++ b/src/mailman/commands/cli_import.py @@ -29,7 +29,7 @@ import sys import cPickle from zope.component import getUtility -from zope.interface import implements +from zope.interface import implementer from mailman.core.i18n import _ from mailman.database.transaction import transactional @@ -39,11 +39,10 @@ from mailman.utilities.importer import import_config_pck +@implementer(ICLISubCommand) class Import21: """Import Mailman 2.1 list data.""" - implements(ICLISubCommand) - name = 'import21' def add(self, parser, command_parser): -- cgit v1.2.3-70-g09d2