summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-05-08 02:28:39 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2009-05-08 02:28:39 (GMT)
commitd846f1d4c21f4589966512f78a4a4d74f8399d6d (patch)
treeb0133d10453f7707201fa5328cd9ddd14e13a6ba /Lib/cgi.py
parent6f9977852ff61be2f55f82bbdb92e486c23d2dd9 (diff)
downloadcpython-d846f1d4c21f4589966512f78a4a4d74f8399d6d.zip
cpython-d846f1d4c21f4589966512f78a4a4d74f8399d6d.tar.gz
cpython-d846f1d4c21f4589966512f78a4a4d74f8399d6d.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 0bb5b8ea..fd30383 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -181,14 +181,14 @@ 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 urlparse.parse_qs \
- instead",PendingDeprecationWarning)
+ instead", PendingDeprecationWarning, 2)
return urlparse.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 urlparse.parse_qsl instead",
- PendingDeprecationWarning)
+ PendingDeprecationWarning, 2)
return urlparse.parse_qsl(qs, keep_blank_values, strict_parsing)
def parse_multipart(fp, pdict):