summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-12-10 10:07:42 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-12-10 10:07:42 (GMT)
commit67317750aff37489fd3fa279413ef20450e7c808 (patch)
treede83b05031484f7aad83149092c1ce9318b5ec3d /Lib/cgi.py
parent720682efd1a98dcd70a829c2a06f5fd07638af26 (diff)
downloadcpython-67317750aff37489fd3fa279413ef20450e7c808.zip
cpython-67317750aff37489fd3fa279413ef20450e7c808.tar.gz
cpython-67317750aff37489fd3fa279413ef20450e7c808.tar.bz2
Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index b3e32f1..e964f0c 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("&", "&amp;") # Must be done first!
s = s.replace("<", "&lt;")
s = s.replace(">", "&gt;")