diff options
| author | Barry Warsaw | 2016-03-25 09:36:52 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-25 09:36:52 -0400 |
| commit | b9c06627e46ff1e9f09965228ab3b48f217109af (patch) | |
| tree | a600fa04dd2ac6d006b88aee2c5e605673629fa3 /src/mailman/handlers/to_usenet.py | |
| parent | 49d630f2761175e404f3b1d811e61bc43eb6b25b (diff) | |
| download | mailman-b9c06627e46ff1e9f09965228ab3b48f217109af.tar.gz mailman-b9c06627e46ff1e9f09965228ab3b48f217109af.tar.zst mailman-b9c06627e46ff1e9f09965228ab3b48f217109af.zip | |
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. |
