]> granicus.if.org Git - python/commitdiff
Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes
authorGeorg Brandl <georg@python.org>
Sat, 30 Sep 2006 10:58:01 +0000 (10:58 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 30 Sep 2006 10:58:01 +0000 (10:58 +0000)
keep_blank_values and strict_parsing keyword arguments.

Lib/cgi.py
Misc/NEWS

index f31938b7c3ff282f84a3a7fe5b5427365a1a8762..818567e5fdcd2e745a28e0081dee9f75b711f10b 100755 (executable)
@@ -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']
 
 
index 6d048cc13798c15efd7e42de8cd9d0f67f8b2f23..0c673f42d37f8a479742754019cc66c92fdac0dd 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -63,6 +63,9 @@ Core and builtins
 Library
 -------
 
+- Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes
+  keep_blank_values and strict_parsing keyword arguments.
+
 - Bug #1566602: correct failure of posixpath unittest when $HOME ends
   with a slash.