diff options
| author | Barry Warsaw | 2016-03-24 15:12:45 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-24 15:12:45 -0400 |
| commit | d964be9f9a141772bb0538f7bc7ecfbf83950a02 (patch) | |
| tree | ac64133d73352829e5d58deb3f7553098ae12f4b /src/mailman/commands/cli_import.py | |
| parent | 8cc7e77b85f013d6f9ea4cda16ae18856fd6ccee (diff) | |
| download | mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.gz mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.zst mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.zip | |
Diffstat (limited to 'src/mailman/commands/cli_import.py')
| -rw-r--r-- | src/mailman/commands/cli_import.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mailman/commands/cli_import.py b/src/mailman/commands/cli_import.py index e94f10a69..ecb879a5a 100644 --- a/src/mailman/commands/cli_import.py +++ b/src/mailman/commands/cli_import.py @@ -17,15 +17,11 @@ """Importing list data into Mailman 3.""" -__all__ = [ - 'Import21', - ] - - import sys import pickle from contextlib import ExitStack, contextmanager +from mailman import public from mailman.core.i18n import _ from mailman.database.transaction import transactional from mailman.interfaces.command import ICLISubCommand @@ -35,7 +31,6 @@ from zope.component import getUtility from zope.interface import implementer - # A fake Bouncer class from Mailman 2.1, we don't use it but there are # instances in the .pck files. class Bouncer: @@ -53,8 +48,7 @@ def hacked_sys_modules(): del sys.modules['Mailman.Bouncer'] - - +@public @implementer(ICLISubCommand) class Import21: """Import Mailman 2.1 list data.""" |
