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

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
return a new reporter object .