parameters: (source_path, settings)
return_statement: return reporter
docstring: Return a new Reporter object.
  
      :Parameters:
          `source` : string
              The path to or description of the source text of the document.
          `settings` : optparse.Values object
              Runtime settings.
docstring_summary: Return a new Reporter object.
docstring_tokens: Return a new Reporter object .
function: def new_reporter(source_path, settings):
      """
      Return a new Reporter object.
  
      :Parameters:
          `source` : string
              The path to or description of the source text of the document.
          `settings` : optparse.Values object
              Runtime settings.
      """
      reporter = Reporter(
          source_path, settings.report_level, settings.halt_level,
          stream=settings.warning_stream, debug=settings.debug,
          encoding=settings.error_encoding,
          error_handler=settings.error_encoding_error_handler)
      return reporter
function_tokens: def new_reporter ( source_path , settings ) : reporter = Reporter ( source_path , settings . report_level , settings . halt_level , stream = settings . warning_stream , debug = settings . debug , encoding = settings . error_encoding , error_handler = settings . error_encoding_error_handler ) return reporter