Skip to content

Commit b6cadfe

Browse files
committed
gh-104773: PEP 594: Remove the nntplib module
* socket_helper.transient_internet() no longer imports nntplib to catch nntplib.NNTPTemporaryError. * ssltests.py no longer runs test_nntplib. * "make quicktest" no longer runs test_nntplib. * WASM: remove nntplib from OMIT_NETWORKING_FILES.
1 parent 684e99d commit b6cadfe

26 files changed

+32
-3363
lines changed

Doc/library/email.generator.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
One of the most common tasks is to generate the flat (serialized) version of
1212
the email message represented by a message object structure. You will need to
1313
do this if you want to send your message via :meth:`smtplib.SMTP.sendmail` or
14-
the :mod:`nntplib` module, or print the message on the console. Taking a
14+
the :mod:`!nntplib` module, or print the message on the console. Taking a
1515
message object structure and producing a serialized representation is the job
1616
of the generator classes.
1717

Doc/library/email.rst

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
The :mod:`email` package is a library for managing email messages. It is
1616
specifically *not* designed to do any sending of email messages to SMTP
1717
(:rfc:`2821`), NNTP, or other servers; those are functions of modules such as
18-
:mod:`smtplib` and :mod:`nntplib`. The :mod:`email` package attempts to be as
18+
:mod:`smtplib` and :mod:`!nntplib`. The :mod:`email` package attempts to be as
1919
RFC-compliant as possible, supporting :rfc:`5322` and :rfc:`6532`, as well as
2020
such MIME-related RFCs as :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, :rfc:`2183`,
2121
and :rfc:`2231`.
@@ -141,9 +141,6 @@ Legacy API:
141141
Module :mod:`imaplib`
142142
IMAP (Internet Message Access Protocol) client
143143

144-
Module :mod:`nntplib`
145-
NNTP (Net News Transport Protocol) client
146-
147144
Module :mod:`mailbox`
148145
Tools for creating, reading, and managing collections of messages on disk
149146
using a variety standard formats.

0 commit comments

Comments
 (0)