[Python-checkins] cpython: #12547: Fix example in nntplib doc. Patch by July Tikhonov.

ezio.melotti python-checkins at python.org
Tue Jul 26 08:38:10 CEST 2011


http://hg.python.org/cpython/rev/95c34bce986c
changeset:   71502:95c34bce986c
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Tue Jul 26 09:37:46 2011 +0300
summary:
  #12547: Fix example in nntplib doc. Patch by July Tikhonov.

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


diff --git a/Doc/library/nntplib.rst b/Doc/library/nntplib.rst
--- a/Doc/library/nntplib.rst
+++ b/Doc/library/nntplib.rst
@@ -75,10 +75,10 @@
    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')
     >>>
 
 
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
@@ -128,7 +128,7 @@
   >>> 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`)

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


More information about the Python-checkins mailing list