mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes
keep_blank_values and strict_parsing keyword arguments.
This commit is contained in:
parent
8d1e5bffc1
commit
05b3c450a8
2 changed files with 7 additions and 2 deletions
|
|
@ -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']
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue