testing/variations/PRESUBMIT.py
def _CreateMalformedConfigMessage(message_type, file_path, message_format,
                                  *args):
  """Returns a list containing one |message_type| with the error message.

  Args:
    message_type: Type of message from |output_api| to return in the case of
      errors/warnings.
    message_format: The error message format string.
    file_path: The path to the config file.
    *args: The args for message_format.

  Returns:
    A list containing a message_type with a formatted error message and
    'Malformed config file [file]: ' prepended to it.
  """
  error_message_format = 'Malformed config file %s: ' + message_format
  format_args = (file_path,) + args
  return [message_type(error_message_format % format_args)]
Returns a list containing one |message_type| with the error message.

  Args:
    message_type: Type of message from |output_api| to return in the case of
      errors/warnings.
    message_format: The error message format string.
    file_path: The path to the config file.
    *args: The args for message_format.

  Returns:
    A list containing a message_type with a formatted error message and
    'Malformed config file [file]: ' prepended to it.
  
Returns a list containing one |message_type| with the error message.
Returns a list containing one |message_type| with the error message .
def _CreateMalformedConfigMessage(message_type, file_path, message_format,
                                  *args):
  error_message_format = 'Malformed config file %s: ' + message_format
  format_args = (file_path,) + args
  return [message_type(error_message_format % format_args)]
def _CreateMalformedConfigMessage ( message_type , file_path , message_format , * args ) : error_message_format = 'Malformed config file %s: ' + message_format format_args = ( file_path , ) + args return [ message_type ( error_message_format % format_args ) ]
Returns a list containing one |message_type| with the error message.
Returns a list containing one |message_type| with the error message .
"""Returns a list containing one |message_type| with the error message.

  Args:
    message_type: Type of message from |output_api| to return in the case of
      errors/warnings.
    message_format: The error message format string.
    file_path: The path to the config file.
    *args: The args for message_format.

  Returns:
    A list containing a message_type with a formatted error message and
    'Malformed config file [file]: ' prepended to it.
  """
' prepended to it.
' prepended to it .
A list containing a message_type with a formatted error message and
'Malformed config file [file]
message_type
Type of message from |output_api| to return in the case of
errors/warnings.
Type of message from |output_api| to return in the case of errors / warnings .
file_path
The path to the config file.
The path to the config file .
message_format
The error message format string.
The error message format string .
*args
The args for message_format.
The args for message_format .