mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).
This commit is contained in:
parent
720682efd1
commit
67317750af
8 changed files with 59 additions and 51 deletions
|
@ -828,7 +828,7 @@ class _NNTPBase:
|
|||
- list: list of (name,title) strings"""
|
||||
warnings.warn("The XGTITLE extension is not actively used, "
|
||||
"use descriptions() instead",
|
||||
PendingDeprecationWarning, 2)
|
||||
DeprecationWarning, 2)
|
||||
line_pat = re.compile('^([^ \t]+)[ \t]+(.*)$')
|
||||
resp, raw_lines = self._longcmdstring('XGTITLE ' + group, file)
|
||||
lines = []
|
||||
|
@ -846,7 +846,7 @@ class _NNTPBase:
|
|||
path: directory path to article
|
||||
"""
|
||||
warnings.warn("The XPATH extension is not actively used",
|
||||
PendingDeprecationWarning, 2)
|
||||
DeprecationWarning, 2)
|
||||
|
||||
resp = self._shortcmd('XPATH {0}'.format(id))
|
||||
if not resp.startswith('223'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue