(self, stream, boundary, content_length=-1,
                 disk_limit=2 ** 30, mem_limit=2 ** 20, memfile_limit=2 ** 18,
                 buffer_size=2 ** 16, charset='latin1')
Parse a multipart/form-data byte stream. This object is an iterator
            over the parts of the message.

            :param stream: A file-like stream. Must implement ``.read(size)``.
            :param boundary: The multipart boundary as a byte string.
            :param content_length: The maximum number of bytes to read.
Parse a multipart/form-data byte stream. This object is an iterator
            over the parts of the message.
Parse a multipart / form - data byte stream . This object is an iterator over the parts of the message .
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'):
        ''' Parse a multipart/form-data byte stream. This object is an iterator
            over the parts of the message.

            :param stream: A file-like stream. Must implement ``.read(size)``.
            :param boundary: The multipart boundary as a byte string.
            :param content_length: The maximum number of bytes to read.
        '''
        self.stream, self.boundary = stream, boundary
        self.content_length = content_length
        self.disk_limit = disk_limit
        self.memfile_limit = memfile_limit
        self.mem_limit = min(mem_limit, self.disk_limit)
        self.buffer_size = min(buffer_size, self.mem_limit)
        self.charset = charset
        if self.buffer_size - 6 < len(boundary):  # "--boundary--\r\n"
            raise MultipartError('Boundary does not fit into buffer_size.')
        self._done = []
        self._part_iter = None
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' ) : self . stream , self . boundary = stream , boundary self . content_length = content_length self . disk_limit = disk_limit self . memfile_limit = memfile_limit self . mem_limit = min ( mem_limit , self . disk_limit ) self . buffer_size = min ( buffer_size , self . mem_limit ) self . charset = charset if self . buffer_size - 6 < len ( boundary ) : # "--boundary--\r\n" raise MultipartError ( 'Boundary does not fit into buffer_size.' ) self . _done = [ ] self . _part_iter = None