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_withlist.py | |
| parent | 8cc7e77b85f013d6f9ea4cda16ae18856fd6ccee (diff) | |
| download | mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.gz mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.zst mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.zip | |
Diffstat (limited to 'src/mailman/commands/cli_withlist.py')
| -rw-r--r-- | src/mailman/commands/cli_withlist.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mailman/commands/cli_withlist.py b/src/mailman/commands/cli_withlist.py index 6c8579d81..e7329f4e7 100644 --- a/src/mailman/commands/cli_withlist.py +++ b/src/mailman/commands/cli_withlist.py @@ -17,16 +17,11 @@ """The `mailman shell` subcommand.""" -__all__ = [ - 'Shell', - 'Withlist', - ] - - import re import sys from lazr.config import as_boolean +from mailman import public from mailman.config import config from mailman.core.i18n import _ from mailman.interfaces.command import ICLISubCommand @@ -43,7 +38,7 @@ m = None r = None - +@public @implementer(ICLISubCommand) class Withlist: """Operate on a mailing list. @@ -164,7 +159,7 @@ class Withlist: def _start_python(self, overrides, banner): # Set the tab completion. try: - import readline, rlcompleter + import readline, rlcompleter # flake8: noqa readline.parse_and_bind('tab: complete') except ImportError: pass @@ -235,7 +230,7 @@ and run this from the command line: % mailman withlist -r change mylist@example.com 'My List'""")) - +@public class Shell(Withlist): """An alias for `withlist`.""" |
