diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 03:57:12 (GMT) |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2009-05-08 03:57:12 (GMT) |
commit | a394f2dca300c17c1d70b7d6d005af457550cc8e (patch) | |
tree | c3d435abd5bddaad590e105556cafa7c6fec4ecb /Lib/cgi.py | |
parent | e7d149ecf0ef00902dbb603cafdf20af346a7090 (diff) | |
download | cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.zip cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.gz cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.bz2 |
#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
@@ -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): |