From: Georg Brandl Date: Sat, 30 Sep 2006 10:58:01 +0000 (+0000) Subject: Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes X-Git-Tag: v2.6a1~2623 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05b3c450a811b93bd915ea0931b04e2679557390;p=thirdparty%2FPython%2Fcpython.git Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes keep_blank_values and strict_parsing keyword arguments. --- diff --git a/Lib/cgi.py b/Lib/cgi.py index f31938b7c3ff..818567e5fdcd 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'] diff --git a/Misc/NEWS b/Misc/NEWS index 6d048cc13798..0c673f42d37f 100644 --- 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.