diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -116,7 +116,7 @@ unconditionally consume :exc:`socket.error` exceptions and to close the NNTP connection when done:: - >>> from nntplib import NNTP + >>> import nntplib >>> with nntplib.NNTP('news.gmane.org') as n: ... n.group('gmane.comp.python.committers') ...