summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 10:58:01 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-30 10:58:01 (GMT)
commit05b3c450a811b93bd915ea0931b04e2679557390 (patch)
tree2facd771a021bf533da7b9de1a755a369c6b369e /Lib/cgi.py
parent8d1e5bffc1249cdb5a8ced25e6f89328e7366290 (diff)
downloadcpython-05b3c450a811b93bd915ea0931b04e2679557390.zip
cpython-05b3c450a811b93bd915ea0931b04e2679557390.tar.gz
cpython-05b3c450a811b93bd915ea0931b04e2679557390.tar.bz2
Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes
keep_blank_values and strict_parsing keyword arguments.
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index f31938b..818567e 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -807,8 +807,10 @@ class FormContentDict(UserDict.UserDict):
form.dict == {key: [val, val, ...], ...}
"""
- def __init__(self, environ=os.environ):
- self.dict = self.data = parse(environ=environ)
+ def __init__(self, environ=os.environ, keep_blank_values=0, strict_parsing=0):
+ self.dict = self.data = parse(environ=environ,
+ keep_blank_values=keep_blank_values,
+ strict_parsing=strict_parsing)
self.query_string = environ['QUERY_STRING']