diff options
Diffstat (limited to 'src/mailman/handlers/to_usenet.py')
| -rw-r--r-- | src/mailman/handlers/to_usenet.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mailman/handlers/to_usenet.py b/src/mailman/handlers/to_usenet.py index a36248be4..4bfa00c5f 100644 --- a/src/mailman/handlers/to_usenet.py +++ b/src/mailman/handlers/to_usenet.py @@ -17,13 +17,9 @@ """Move the message to the mail->news queue.""" -__all__ = [ - 'ToUsenet', - ] - - import logging +from mailman import public from mailman.config import config from mailman.core.i18n import _ from mailman.interfaces.handler import IHandler @@ -34,7 +30,7 @@ COMMASPACE = ', ' log = logging.getLogger('mailman.error') - +@public @implementer(IHandler) class ToUsenet: """Move the message to the outgoing news queue.""" @@ -46,8 +42,8 @@ class ToUsenet: """See `IHandler`.""" # Short circuits. if (not mlist.gateway_to_news or - msgdata.get('isdigest') or - msgdata.get('fromusenet')): + msgdata.get('isdigest') or + msgdata.get('fromusenet')): # Short-circuit. return # Sanity checks. |
