diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-04-11 13:49:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-11 13:49:35 (GMT) |
commit | 6ec2fb42f93660810952388e5c4018c197c17c8c (patch) | |
tree | 2f855b0a8736d5a73c5e6f3ef968e42269a4c8c3 /Lib/urllib | |
parent | dbc0e19a48c6f7229c06f0ae71fae0550c84c37c (diff) | |
download | cpython-6ec2fb42f93660810952388e5c4018c197c17c8c.zip cpython-6ec2fb42f93660810952388e5c4018c197c17c8c.tar.gz cpython-6ec2fb42f93660810952388e5c4018c197c17c8c.tar.bz2 |
bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818)
* coerce bytes separator to string
* Add news
* Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst
(cherry picked from commit b38601d49675d90e1ee6faa47f7adaeca992d02d)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Diffstat (limited to 'Lib/urllib')
-rw-r--r-- | Lib/urllib/parse.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 335e183..21cae47 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -733,6 +733,7 @@ def parse_qsl(qs, keep_blank_values=False, strict_parsing=False, Returns a list, as G-d intended. """ qs, _coerce_result = _coerce_args(qs) + separator, _ = _coerce_args(separator) if not separator or (not isinstance(separator, (str, bytes))): raise ValueError("Separator must be of type string or bytes.") |