Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).

This commit is contained in:
Florent Xicluna 2011-12-10 11:07:42 +01:00
parent 720682efd1
commit 67317750af
8 changed files with 59 additions and 51 deletions

View file

@ -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)