summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-05-08 03:57:12 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2009-05-08 03:57:12 (GMT)
commita394f2dca300c17c1d70b7d6d005af457550cc8e (patch)
treec3d435abd5bddaad590e105556cafa7c6fec4ecb /Lib/cgi.py
parente7d149ecf0ef00902dbb603cafdf20af346a7090 (diff)
downloadcpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.zip
cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.gz
cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.bz2
#4351: more appropriate DeprecationWarning stacklevels
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 35f6996..9e16a1d 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):