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_conf.py | |
| parent | 8cc7e77b85f013d6f9ea4cda16ae18856fd6ccee (diff) | |
| download | mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.gz mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.zst mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.zip | |
Diffstat (limited to 'src/mailman/commands/cli_conf.py')
| -rw-r--r-- | src/mailman/commands/cli_conf.py | 11 |
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), |
