(entity)
The behavior of 3.2 and lower. Deprecated and will be changed in 3.3.
The behavior of 3.2 and lower. Deprecated and will be changed in 3.3.
The behavior of 3 . 2 and lower . Deprecated and will be changed in 3 . 3 .
def _old_process_multipart(entity):
    """The behavior of 3.2 and lower. Deprecated and will be changed in 3.3."""
    process_multipart(entity)

    params = entity.params

    for part in entity.parts:
        if part.name is None:
            key = ntou('parts')
        else:
            key = part.name

        if part.filename is None:
            # It's a regular field
            value = part.fullvalue()
        else:
            # It's a file upload. Retain the whole part so consumer code
            # has access to its .file and .filename attributes.
            value = part

        if key in params:
            if not isinstance(params[key], list):
                params[key] = [params[key]]
            params[key].append(value)
        else:
            params[key] = value
def _old_process_multipart ( entity ) : process_multipart ( entity ) params = entity . params for part in entity . parts : if part . name is None : key = ntou ( 'parts' ) else : key = part . name if part . filename is None : # It's a regular field value = part . fullvalue ( ) else : # It's a file upload. Retain the whole part so consumer code # has access to its .file and .filename attributes. value = part if key in params : if not isinstance ( params [ key ] , list ) : params [ key ] = [ params [ key ] ] params [ key ] . append ( value ) else : params [ key ] = value