]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#12547: Fix example in nntplib doc. Patch by July Tikhonov.
authorEzio Melotti <ezio.melotti@gmail.com>
Tue, 26 Jul 2011 06:37:46 +0000 (09:37 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Tue, 26 Jul 2011 06:37:46 +0000 (09:37 +0300)
Doc/library/nntplib.rst
Doc/whatsnew/3.3.rst

index 19b8cab25af55428a621ae2ad75748923f249b0e..01294e821dcc4a16640fc2f2922c4d9725a491c5 100644 (file)
@@ -75,10 +75,10 @@ The module itself defines the following classes:
    connection when done. Here is a sample on how using it:
 
     >>> 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 1755 1 1755 gmane.comp.python.committers', 1755, 1, 1755, 'gmane.comp.python.committers')
     >>>
 
 
index 051d165e416cb45d12656a7901518c9ed2d4d9b9..677f35cde460921bb4d819938228e8bbff669dbd 100644 (file)
@@ -128,7 +128,7 @@ connection when done::
   >>> with NNTP('news.gmane.org') as n:
   ...     n.group('gmane.comp.python.committers')
   ...
-  ('211 1754 1 1754 gmane.comp.python.committers', 1754, 1, 1754, 'gmane.comp.python.committers')
+  ('211 1755 1 1755 gmane.comp.python.committers', 1755, 1, 1755, 'gmane.comp.python.committers')
   >>>
 
 (Contributed by Giampaolo RodolĂ  in :issue:`9795`)