diff options
| author | Barry Warsaw | 2011-02-25 18:37:36 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2011-02-25 18:37:36 -0500 |
| commit | 3765208fc3ed30d1799c892a837ef25e860c4c40 (patch) | |
| tree | 058c758ea1a0c2b852945db4007fb3687a5a6275 /src/mailman/queue/news.py | |
| parent | 2503461e8b5e1d184e58e3caaa41ca941b95b91a (diff) | |
| download | mailman-3765208fc3ed30d1799c892a837ef25e860c4c40.tar.gz mailman-3765208fc3ed30d1799c892a837ef25e860c4c40.tar.zst mailman-3765208fc3ed30d1799c892a837ef25e860c4c40.zip | |
Diffstat (limited to 'src/mailman/queue/news.py')
| -rw-r--r-- | src/mailman/queue/news.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/queue/news.py b/src/mailman/queue/news.py index dcb0deba6..a3d915244 100644 --- a/src/mailman/queue/news.py +++ b/src/mailman/queue/news.py @@ -24,8 +24,8 @@ import logging import nntplib from cStringIO import StringIO +from lazr.config import as_host_port -from mailman import Utils from mailman.config import config from mailman.interfaces.nntp import NewsModeration from mailman.queue import Runner @@ -61,7 +61,8 @@ class NewsRunner(Runner): conn = None try: try: - nntp_host, nntp_port = Utils.nntpsplit(mlist.nntp_host) + nntp_host, nntp_port = as_host_port( + mlist.nntp_host, default_port=119) conn = nntplib.NNTP(nntp_host, nntp_port, readermode=True, user=config.nntp.username, |
