mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
Whitespace normalization.
This commit is contained in:
parent
c7ca3ffba3
commit
ab9ba27dc0
12 changed files with 54 additions and 55 deletions
|
@ -247,9 +247,9 @@ def parse_multipart(fp, pdict):
|
|||
if pdict.has_key('boundary'):
|
||||
boundary = pdict['boundary']
|
||||
if not valid_boundary(boundary):
|
||||
raise ValueError, ('Invalid boundary in multipart form: %s'
|
||||
raise ValueError, ('Invalid boundary in multipart form: %s'
|
||||
% `ib`)
|
||||
|
||||
|
||||
nextpart = "--" + boundary
|
||||
lastpart = "--" + boundary + "--"
|
||||
partdict = {}
|
||||
|
@ -600,7 +600,7 @@ class FieldStorage:
|
|||
"""Internal: read a part that is itself multipart."""
|
||||
ib = self.innerboundary
|
||||
if not valid_boundary(ib):
|
||||
raise ValueError, ('Invalid boundary in multipart form: %s'
|
||||
raise ValueError, ('Invalid boundary in multipart form: %s'
|
||||
% `ib`)
|
||||
self.list = []
|
||||
klass = self.FieldStorageClass or self.__class__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue