From a681354cadf48394127796eb111c2904283c9288 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 25 Mar 2016 10:13:48 -0400 Subject: Clean up the interfaces directory. --- src/mailman/interfaces/command.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/mailman/interfaces/command.py') diff --git a/src/mailman/interfaces/command.py b/src/mailman/interfaces/command.py index 9ccb9a0f4..76bf8aa1c 100644 --- a/src/mailman/interfaces/command.py +++ b/src/mailman/interfaces/command.py @@ -17,33 +17,26 @@ """Interfaces defining email commands.""" -__all__ = [ - 'ContinueProcessing', - 'ICLISubCommand', - 'IEmailCommand', - 'IEmailResults', - ] - - from enum import Enum +from mailman import public from zope.interface import Interface, Attribute - +@public class ContinueProcessing(Enum): """Should `IEmailCommand.process()` continue or not.""" no = 0 yes = 1 - +@public class IEmailResults(Interface): """The email command results object.""" output = Attribute('An output file object for printing results to.') - +@public class IEmailCommand(Interface): """An email command.""" @@ -66,7 +59,7 @@ class IEmailCommand(Interface): """ - +@public class ICLISubCommand(Interface): """A command line interface subcommand.""" -- cgit v1.2.3-70-g09d2