From 67317750aff37489fd3fa279413ef20450e7c808 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Sat, 10 Dec 2011 11:07:42 +0100 Subject: Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd). --- Lib/cgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cgi.py') diff --git a/Lib/cgi.py b/Lib/cgi.py index b3e32f1ba8..e964f0c435 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -1012,7 +1012,7 @@ environment as well. Here are some common variable names: def escape(s, quote=None): """Deprecated API.""" warn("cgi.escape is deprecated, use html.escape instead", - PendingDeprecationWarning, stacklevel=2) + DeprecationWarning, stacklevel=2) s = s.replace("&", "&") # Must be done first! s = s.replace("<", "<") s = s.replace(">", ">") -- cgit v1.2.1