mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Added a warning filter to don't show the warning during
the tests. Also fixed the warning message in cgi.py
This commit is contained in:
parent
1cd0247a4d
commit
a27244bfa1
2 changed files with 14 additions and 5 deletions
|
@ -168,7 +168,7 @@ def parse_qs(qs, keep_blank_values=0, strict_parsing=0):
|
|||
|
||||
def parse_qsl(qs, keep_blank_values=0, strict_parsing=0):
|
||||
"""Parse a query given as a string argument."""
|
||||
warn("cgi.parse_qsl is deprecated, use urllib.parse.parse_qs instead",
|
||||
warn("cgi.parse_qsl is deprecated, use urllib.parse.parse_qsl instead",
|
||||
DeprecationWarning)
|
||||
return urllib.parse.parse_qsl(qs, keep_blank_values, strict_parsing)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue