[issue39366] Remove deprecated nntplib method
Dong-hee Na
report at bugs.python.org
Fri Jan 17 09:11:24 EST 2020
Dong-hee Na <donghee.na92 at gmail.com> added the comment:
> Does https://docs.python.org/dev/library/nntplib.html#nntplib.NNTP.description give the same result?
Not exactly same but descriptions give a similar result.
>>> import nntplib
>>> a = nntplib.NNTP('news.gmane.io')
>>> a.description('gmane.comp.python.committers')
'CPython Committers (non-public) (Moderated)'
>>> a.descriptions('gmane.comp.python.committers')
('215 Newsgroup descriptions in form "group description"', {'gmane.comp.python.committers': 'CPython Committers (non-public) (Moderated)'})
>>> a.xgtitle('gmane.comp.python.committers')
<stdin>:1: DeprecationWarning: The XGTITLE extension is not actively used, use descriptions() instead
('282 Descriptions in form "group description"', [('gmane.comp.python.committers', 'CPython Committers (non-public) (Moderated)')])
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39366>
_______________________________________
More information about the Python-bugs-list
mailing list