parameters: (tokenlist, value)
docstring: Do our best to find the parameters in an invalid MIME header
docstring_summary: Do our best to find the parameters in an invalid MIME header
docstring_tokens: Do our best to find the parameters in an invalid MIME header
function: def _find_mime_parameters(tokenlist, value):
      """Do our best to find the parameters in an invalid MIME header
  
      """
      while value and value[0] != ';':
          if value[0] in PHRASE_ENDS:
              tokenlist.append(ValueTerminal(value[0], 'misplaced-special'))
              value = value[1:]
          else:
              token, value = get_phrase(value)
              tokenlist.append(token)
      if not value:
          return
      tokenlist.append(ValueTerminal(';', 'parameter-separator'))
      tokenlist.append(parse_mime_parameters(value[1:]))
function_tokens: def _find_mime_parameters ( tokenlist , value ) : while value and value [ 0 ] != ';' : if value [ 0 ] in PHRASE_ENDS : tokenlist . append ( ValueTerminal ( value [ 0 ] , 'misplaced-special' ) ) value = value [ 1 : ] else : token , value = get_phrase ( value ) tokenlist . append ( token ) if not value : return tokenlist . append ( ValueTerminal ( ';' , 'parameter-separator' ) ) tokenlist . append ( parse_mime_parameters ( value [ 1 : ] ) )