summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_status.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-04-25 22:08:22 -0400
committerBarry Warsaw2012-04-25 22:08:22 -0400
commit658fad42b04420962e6ac478247411ee77483d93 (patch)
treedb16a22376b7191910bf674304c847850169144f /src/mailman/commands/cli_status.py
parent4488631dff02731ff03f2fef01ee27bbd944812b (diff)
downloadmailman-658fad42b04420962e6ac478247411ee77483d93.tar.gz
mailman-658fad42b04420962e6ac478247411ee77483d93.tar.zst
mailman-658fad42b04420962e6ac478247411ee77483d93.zip
Diffstat (limited to 'src/mailman/commands/cli_status.py')
-rw-r--r--src/mailman/commands/cli_status.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mailman/commands/cli_status.py b/src/mailman/commands/cli_status.py
index 14b0d976b..9cbaa4f22 100644
--- a/src/mailman/commands/cli_status.py
+++ b/src/mailman/commands/cli_status.py
@@ -15,9 +15,9 @@
# You should have received a copy of the GNU General Public License along with
# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
-"""Module stuff."""
+"""bin/mailman status."""
-from __future__ import absolute_import, unicode_literals
+from __future__ import absolute_import, print_function, unicode_literals
__metaclass__ = type
__all__ = [
@@ -27,7 +27,7 @@ __all__ = [
import socket
-from zope.interface import implements
+from zope.interface import implementer
from mailman.bin.master import WatcherState, master_state
from mailman.core.i18n import _
@@ -35,11 +35,10 @@ from mailman.interfaces.command import ICLISubCommand
+@implementer(ICLISubCommand)
class Status:
"""Status of the Mailman system."""
- implements(ICLISubCommand)
-
name = 'status'
def add(self, parser, command_parser):
@@ -64,5 +63,5 @@ class Status:
'Invalid enum value: %s' % status)
message = _('GNU Mailman is in an unexpected state '
'($hostname != $fqdn_name)')
- print message
+ print(message)
return int(status)