]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116895)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 16 Mar 2024 11:04:31 +0000 (12:04 +0100)
committerGitHub <noreply@github.com>
Sat, 16 Mar 2024 11:04:31 +0000 (11:04 +0000)
commiteddfdb3e509de7cbb591d89f9313fbb3394a0724
tree884cf100150b8f14f53a96f95f4191ba6b655be1
parentd16519ab7b233056de17435b2a5ccfd9579be198
[3.11] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116895)

* Restore support of None and other false values.
* Raise TypeError for non-zero integers and non-empty sequences.

The regressions were introduced in gh-74668
(bdba8ef42b15e651dc23374a08143cc2b4c4657d).
(cherry picked from commit 1069a462f611f0b70b6eec0bba603d618a0378f3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Misc/NEWS.d/next/Library/2024-03-14-14-01-46.gh-issue-116764.moB3Lc.rst [new file with mode: 0644]