Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51302a5

Browse files
bpo-32996: Improve What's New in 3.7. (python#5983)
1 parent 9cf8c42 commit 51302a5

File tree

2 files changed

+131
-123
lines changed

2 files changed

+131
-123
lines changed

Doc/library/cgi.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,13 @@ algorithms implemented in this module in other circumstances.
289289
This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
290290
instead. It is maintained here only for backward compatibility.
291291

292+
292293
.. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False)
293294

294295
This function is deprecated in this module. Use :func:`urllib.parse.parse_qsl`
295296
instead. It is maintained here only for backward compatibility.
296297

298+
297299
.. function:: parse_multipart(fp, pdict, encoding="utf-8")
298300

299301
Parse input of type :mimetype:`multipart/form-data` (for file uploads).
@@ -309,6 +311,10 @@ algorithms implemented in this module in other circumstances.
309311
uploaded --- in that case, use the :class:`FieldStorage` class instead
310312
which is much more flexible.
311313

314+
.. versionchanged:: 3.7
315+
Added the *encoding* parameter. For non-file fields, the value is now
316+
a list of strings, not bytes.
317+
312318

313319
.. function:: parse_header(string)
314320

0 commit comments

Comments
 (0)