[Python-checkins] cpython: #12547: Fix import and output in nntplib example. Initial patch by July

ezio.melotti python-checkins at python.org
Wed Jul 13 10:44:59 CEST 2011


http://hg.python.org/cpython/rev/e0cd35660ae9
changeset:   71303:e0cd35660ae9
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Wed Jul 13 11:44:44 2011 +0300
summary:
  #12547: Fix import and output in nntplib example. Initial patch by July Tikhonov.

files:
  Doc/whatsnew/3.3.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


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
@@ -117,10 +117,10 @@
 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`)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list