summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_withlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/cli_withlist.py')
-rw-r--r--src/mailman/commands/cli_withlist.py13
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`."""