diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 03:57:12 +0000 |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 03:57:12 +0000 |
commit | 35b5a1ae2747820e574c8a0112db14a6e7b36add (patch) | |
tree | 615d824cd7a239a1cf7bef0bccf2540e66fc22c5 /Lib/cgi.py | |
parent | 9831cf049c7e6571bed73b0d853ce00e6984286c (diff) | |
download | cpython-35b5a1ae2747820e574c8a0112db14a6e7b36add.tar.gz |
#4351: more appropriate DeprecationWarning stacklevels
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-x | Lib/cgi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py index 35f6996140..9e16a1df62 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -163,13 +163,13 @@ def parse(fp=None, environ=os.environ, keep_blank_values=0, strict_parsing=0): def parse_qs(qs, keep_blank_values=0, strict_parsing=0): """Parse a query given as a string argument.""" warn("cgi.parse_qs is deprecated, use urllib.parse.parse_qs instead", - DeprecationWarning) + DeprecationWarning, 2) return urllib.parse.parse_qs(qs, keep_blank_values, strict_parsing) 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_qsl instead", - DeprecationWarning) + DeprecationWarning, 2) return urllib.parse.parse_qsl(qs, keep_blank_values, strict_parsing) def parse_multipart(fp, pdict): |