summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2020-01-08 15:29:34 (GMT)
committerVictor Stinner <vstinner@python.org>2020-01-08 15:29:34 (GMT)
commit2e6a8efa837410327b593dc83c57492253b1201e (patch)
treed6adabe2c65cbe22e8ed12063ba0c31847ed3f5f /Doc
parent9a669d58e8cb586fba38c84d5b631cd8a95d0c0c (diff)
downloadcpython-2e6a8efa837410327b593dc83c57492253b1201e.zip
cpython-2e6a8efa837410327b593dc83c57492253b1201e.tar.gz
cpython-2e6a8efa837410327b593dc83c57492253b1201e.tar.bz2
bpo-39242: Updated the Gmane domain into news.gmane.io (GH-17903)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/nntplib.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/nntplib.rst b/Doc/library/nntplib.rst
index 46f1c07..e8480b5 100644
--- a/Doc/library/nntplib.rst
+++ b/Doc/library/nntplib.rst
@@ -20,7 +20,7 @@ as well as the older :rfc:`977` and :rfc:`2980`.
Here are two small examples of how it can be used. To list some statistics
about a newsgroup and print the subjects of the last 10 articles::
- >>> s = nntplib.NNTP('news.gmane.org')
+ >>> s = nntplib.NNTP('news.gmane.io')
>>> resp, count, first, last, name = s.group('gmane.comp.python.committers')
>>> print('Group', name, 'has', count, 'articles, range', first, 'to', last)
Group gmane.comp.python.committers has 1096 articles, range 1 to 1096
@@ -44,7 +44,7 @@ about a newsgroup and print the subjects of the last 10 articles::
To post an article from a binary file (this assumes that the article has valid
headers, and that you have right to post on the particular newsgroup)::
- >>> s = nntplib.NNTP('news.gmane.org')
+ >>> s = nntplib.NNTP('news.gmane.io')
>>> f = open('article.txt', 'rb')
>>> s.post(f)
'240 Article posted successfully.'
@@ -73,7 +73,7 @@ The module itself defines the following classes:
connection when done, e.g.:
>>> from nntplib import NNTP
- >>> with NNTP('news.gmane.org') as n:
+ >>> with NNTP('news.gmane.io') as n:
... n.group('gmane.comp.python.committers')
... # doctest: +SKIP
('211 1755 1 1755 gmane.comp.python.committers', 1755, 1, 1755, 'gmane.comp.python.committers')
@@ -225,7 +225,7 @@ tuples or objects that the method normally returns will be empty.
of values. On legacy servers which don't understand the ``CAPABILITIES``
command, an empty dictionary is returned instead.
- >>> s = NNTP('news.gmane.org')
+ >>> s = NNTP('news.gmane.io')
>>> 'POST' in s.getcapabilities()
True