summaryrefslogtreecommitdiff
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-05-08 03:57:12 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2009-05-08 03:57:12 +0000
commit35b5a1ae2747820e574c8a0112db14a6e7b36add (patch)
tree615d824cd7a239a1cf7bef0bccf2540e66fc22c5 /Lib/cgi.py
parent9831cf049c7e6571bed73b0d853ce00e6984286c (diff)
downloadcpython-35b5a1ae2747820e574c8a0112db14a6e7b36add.tar.gz
#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 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):