Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_default_reporter():
if not hasattr(DEFAULT_REPORTER, "v") or DEFAULT_REPORTER.v is None:
return DiffReporter()
return DEFAULT_REPORTER.v
def __init__(self):
factory = GenericDiffReporterFactory()
reporters = list(factory.get_all_reporters())
reporters.append(CommandLineReporter())
super(DiffReporter, self).__init__(*reporters)