summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/cli_conf.py')
-rw-r--r--src/mailman/commands/cli_conf.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mailman/commands/cli_conf.py b/src/mailman/commands/cli_conf.py
index fcf48b312..67db4ac53 100644
--- a/src/mailman/commands/cli_conf.py
+++ b/src/mailman/commands/cli_conf.py
@@ -17,22 +17,18 @@
"""Print the mailman configuration."""
-__all__ = [
- 'Conf'
- ]
-
-
import sys
from contextlib import closing
from lazr.config._config import Section
+from mailman import public
from mailman.config import config
from mailman.core.i18n import _
from mailman.interfaces.command import ICLISubCommand
from zope.interface import implementer
-
+@public
@implementer(ICLISubCommand)
class Conf:
"""Print the mailman configuration."""
@@ -114,8 +110,7 @@ class Conf:
# We have to ensure that the current section actually exists
# and that it contains the given key.
if (self._section_exists(current_section) and
- hasattr(getattr(config, current_section), key)):
- # Then...
+ hasattr(getattr(config, current_section), key)):
self._print_full_syntax(
current_section, key,
self._get_value(current_section, key),