diff --git a/pep-0594.rst b/pep-0594.rst index 828921670..bd52357e5 100644 --- a/pep-0594.rst +++ b/pep-0594.rst @@ -338,7 +338,11 @@ related to executing code are: - ``parse`` with ``urllib.parse.parse_qs`` (``parse`` is just a wrapper) - ``parse_header`` with ``email.message.Message`` (see example below) - ``parse_multipart`` with ``email.message.Message`` (same MIME RFCs) -- ``FieldStorage``/``MiniFieldStorage`` has no direct replacement +- ``FieldStorage``/``MiniFieldStorage`` has no direct replacement, but can + typically be replaced by using `multipart + `_ (for ``POST`` and ``PUT`` + requests) or ``urllib.parse.parse_qsl`` (for ``GET`` and ``HEAD`` + requests) - ``valid_boundary`` (undocumented) with ``re.compile("^[ -~]{0,200}[!-~]$")`` As an explicit example of how close ``parse_header`` and