#NEWLINE# def __init__( self , stream , boundary , content_length = ( - 1 ) , disk_limit = ( 2 ** 30 ) , mem_limit = ( 2 ** 20 ) , memfile_limit = ( 2 ** 18 ) , buffer_size = ( 2 ** 16 ) , charset = 'latin1' ) : #NEWLINE# #INDENT# ' Parse a multipart/form-data byte stream. This object is an iterator\n            over the parts of the message.\n\n            :param stream: A file-like stream. Must implement ``.read(size)``.\n            :param boundary: The multipart boundary as a byte string.\n            :param content_length: The maximum number of bytes to read.\n        ' #NEWLINE# ( self . stream , self . boundary ) = ( stream , boundary ) #NEWLINE# self . content_length = content_length #NEWLINE# self . disk_limit = disk_limit #NEWLINE# self . memfile_limit = memfile_limit #NEWLINE# self . mem_limit = min ( boundary , self . disk_limit ) #NEWLINE# self . buffer_size = min ( buffer_size , self . mem_limit ) #NEWLINE# self . charset = charset #NEWLINE# if ( ( self . buffer_size - 6 ) < len ( boundary ) ) : #NEWLINE# #INDENT# raise MultipartError ( 'Boundary does not fit into buffer_size.' ) #NEWLINE# #UNINDENT# self . _done = [ ] #NEWLINE# self . _part_iter = None