mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -195,7 +195,7 @@ class PyLoader(SourceLoader):
|
|||
"use SourceLoader instead. "
|
||||
"See the importlib documentation on how to be "
|
||||
"compatible with Python 3.1 onwards.",
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
path = self.source_path(fullname)
|
||||
if path is None:
|
||||
raise ImportError
|
||||
|
@ -234,7 +234,7 @@ class PyPycLoader(PyLoader):
|
|||
"removal in Python 3.4; use SourceLoader instead. "
|
||||
"If Python 3.1 compatibility is required, see the "
|
||||
"latest documentation for PyLoader.",
|
||||
PendingDeprecationWarning)
|
||||
DeprecationWarning)
|
||||
source_timestamp = self.source_mtime(fullname)
|
||||
# Try to use bytecode if it is available.
|
||||
bytecode_path = self.bytecode_path(fullname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue