From: Ezio Melotti Date: Wed, 13 Jul 2011 08:44:44 +0000 (+0300) Subject: #12547: Fix import and output in nntplib example. Initial patch by July Tikhonov. X-Git-Tag: v3.3.0a1~1921 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c14b4ebe789149caf929cfdd92f486c08de4a37;p=python #12547: Fix import and output in nntplib example. Initial patch by July Tikhonov. --- diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 267de3a9f7..0498ca8505 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -117,10 +117,10 @@ unconditionally consume :exc:`socket.error` exceptions and to close the NNTP connection when done:: >>> from nntplib import NNTP - >>> with nntplib.NNTP('news.gmane.org') as n: + >>> with NNTP('news.gmane.org') as n: ... n.group('gmane.comp.python.committers') ... - ('211 1454 1 1454 gmane.comp.python.committers', '1454', '1', '1454', 'gmane.comp.python.committers') + ('211 1754 1 1754 gmane.comp.python.committers', 1754, 1, 1754, 'gmane.comp.python.committers') >>> (Contributed by Giampaolo Rodolà in :issue:`9795`)