summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/to_usenet.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/handlers/to_usenet.py')
-rw-r--r--src/mailman/handlers/to_usenet.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mailman/handlers/to_usenet.py b/src/mailman/handlers/to_usenet.py
index d5a946644..8d86ea86e 100644
--- a/src/mailman/handlers/to_usenet.py
+++ b/src/mailman/handlers/to_usenet.py
@@ -17,9 +17,6 @@
"""Move the message to the mail->news queue."""
-from __future__ import absolute_import, print_function, unicode_literals
-
-__metaclass__ = type
__all__ = [
'ToUsenet',
]
@@ -27,14 +24,13 @@ __all__ = [
import logging
-from zope.interface import implementer
-
from mailman.config import config
from mailman.core.i18n import _
from mailman.interfaces.handler import IHandler
+from zope.interface import implementer
-COMMASPACE = ', '
+COMMASPACE = ', '
log = logging.getLogger('mailman.error')
@@ -65,5 +61,4 @@ class ToUsenet:
COMMASPACE.join(error))
return
# Put the message in the news runner's queue.
- config.switchboards['nntp'].enqueue(
- msg, msgdata, listname=mlist.fqdn_listname)
+ config.switchboards['nntp'].enqueue(msg, msgdata, listid=mlist.list_id)