mirror of https://github.com/python/cpython
#12547: Fix import and output in nntplib example. Initial patch by July Tikhonov.
This commit is contained in:
parent
0850638957
commit
3c14b4ebe7
|
@ -117,10 +117,10 @@ unconditionally consume :exc:`socket.error` exceptions and to close the NNTP
|
||||||
connection when done::
|
connection when done::
|
||||||
|
|
||||||
>>> from nntplib import NNTP
|
>>> 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')
|
... 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`)
|
(Contributed by Giampaolo Rodolà in :issue:`9795`)
|
||||||
|
|
Loading…
Reference in New Issue