summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-06-19 08:28:50 (GMT)
committerGitHub <noreply@github.com>2018-06-19 08:28:50 (GMT)
commit698865dcbb302ae742b76be883822f1563764ff9 (patch)
tree28064c6e361c4e7af8e4ef3db85c82f64e3dbd67 /Doc
parentcb970730e3ca2522e9b1700dcaf0a06b7e898db6 (diff)
downloadcpython-698865dcbb302ae742b76be883822f1563764ff9.zip
cpython-698865dcbb302ae742b76be883822f1563764ff9.tar.gz
cpython-698865dcbb302ae742b76be883822f1563764ff9.tar.bz2
bpo-33843: Remove deprecated stuff in cgi module (GH-7662)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/cgi.rst26
-rw-r--r--Doc/whatsnew/3.8.rst4
2 files changed, 4 insertions, 26 deletions
diff --git a/Doc/library/cgi.rst b/Doc/library/cgi.rst
index 0b1aead..4048592 100644
--- a/Doc/library/cgi.rst
+++ b/Doc/library/cgi.rst
@@ -284,18 +284,6 @@ algorithms implemented in this module in other circumstances.
passed to :func:`urllib.parse.parse_qs` unchanged.
-.. function:: parse_qs(qs, keep_blank_values=False, strict_parsing=False)
-
- This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
- instead. It is maintained here only for backward compatibility.
-
-
-.. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False)
-
- This function is deprecated in this module. Use :func:`urllib.parse.parse_qsl`
- instead. It is maintained here only for backward compatibility.
-
-
.. function:: parse_multipart(fp, pdict, encoding="utf-8", errors="replace")
Parse input of type :mimetype:`multipart/form-data` (for file uploads).
@@ -348,20 +336,6 @@ algorithms implemented in this module in other circumstances.
Print a list of useful (used by CGI) environment variables in HTML.
-.. function:: escape(s, quote=False)
-
- Convert the characters ``'&'``, ``'<'`` and ``'>'`` in string *s* to HTML-safe
- sequences. Use this if you need to display text that might contain such
- characters in HTML. If the optional flag *quote* is true, the quotation mark
- character (``"``) is also translated; this helps for inclusion in an HTML
- attribute value delimited by double quotes, as in ``<a href="...">``. Note
- that single quotes are never translated.
-
- .. deprecated:: 3.2
- This function is unsafe because *quote* is false by default, and therefore
- deprecated. Use :func:`html.escape` instead.
-
-
.. _cgi-security:
Caring about security
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 10fa182..58be90f 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -136,6 +136,10 @@ Removed
to help eliminate confusion as to what Python interpreter the ``pyvenv``
script is tied to. (Contributed by Brett Cannon in :issue:`25427`.)
+* ``parse_qs``, ``parse_qsl``, and ``escape`` are removed from :mod:`cgi`
+ module. They are deprecated from Python 3.2 or older.
+
+
Porting to Python 3.8
=====================