summaryrefslogtreecommitdiffstats
path: root/Doc/library/nntplib.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-07-26 06:37:46 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-07-26 06:37:46 (GMT)
commit04f648cb90f0750d007163f1d92da433cdbc9328 (patch)
tree5b90da430f8ccc7401473b82c8fd639d49eaffc6 /Doc/library/nntplib.rst
parent8188f585b2c1d21c1b680181f38b45c4234c6865 (diff)
downloadcpython-04f648cb90f0750d007163f1d92da433cdbc9328.zip
cpython-04f648cb90f0750d007163f1d92da433cdbc9328.tar.gz
cpython-04f648cb90f0750d007163f1d92da433cdbc9328.tar.bz2
#12547: Fix example in nntplib doc. Patch by July Tikhonov.
Diffstat (limited to 'Doc/library/nntplib.rst')
-rw-r--r--Doc/library/nntplib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/nntplib.rst b/Doc/library/nntplib.rst
index 19b8cab..01294e8 100644
--- a/Doc/library/nntplib.rst
+++ b/Doc/library/nntplib.rst
@@ -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')
>>>