]> granicus.if.org Git - python/commitdiff
#12547: Fix import and output in nntplib example. Initial patch by July Tikhonov.
authorEzio Melotti <ezio.melotti@gmail.com>
Wed, 13 Jul 2011 08:44:44 +0000 (11:44 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Wed, 13 Jul 2011 08:44:44 +0000 (11:44 +0300)
Doc/whatsnew/3.3.rst

index 267de3a9f7c79c5fc17726afadc29133fee39103..0498ca8505d59ef831c372b57e58b95cf2638cb8 100644 (file)
@@ -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`)