def __init__(self, stream_factory=None, charset='utf-8', errors='replace', max_form_memory_size=None, cls=None, buffer_size=(10 * 1024)):
    self.stream_factory = stream_factory
    self.charset = charset
    self.errors = errors
    self.max_form_memory_size = max_form_memory_size
    if (stream_factory is None):
        stream_factory = default_stream_factory
    if (cls is None):
        cls = MultiDict
    self.cls = cls
    assert ((buffer_size % 4) == 0), 'buffer size has to be divisible by 4'
    assert (buffer_size >= 1024), 'buffer size has to be at least 1KB'
    self.buffer_size = buffer_size
def __init__(self, stream_factory=None, charset='utf-8', errors='replace', max_form_memory_size=None, cls=None, buffer_size=(10 * 1024)):
    self.stream_factory = stream_factory
    self.charset = charset
    self.errors = errors
    self.max_form_memory_size = max_form_memory_size
    if (stream_factory is None):
        stream_factory = default_stream_factory
    if (cls is None):
        cls = MultiDict
    self.cls = cls
    assert ((buffer_size % 4) == 0), 'buffer size has to be divisible by 4'
    assert (buffer_size >= 1024), 'buffer size has to be at least 1KB'
    self.buffer_size = buffer_size