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):
   value = part.fullvalue()
  else:
   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 ) : value = part . fullvalue ( ) else : value = part if ( key in params ) : if ( not isinstance ( params [ key ] , list ) ) : params [ key ] = [ params [ key ] ] params [ key ] . append ( value ) else : params [ key ] = value
the behavior of 3 .