]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116894)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 16 Mar 2024 11:00:32 +0000 (12:00 +0100)
committerGitHub <noreply@github.com>
Sat, 16 Mar 2024 11:00:32 +0000 (11:00 +0000)
commit716d482ba49a72adad4db98db92bb30667a566c7
tree6c4ae0504212c3f87294bbc39129f7d476e9284d
parent32c775165fd455a0ab0709c2897647f01c038c36
[3.12] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116894)

* 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]