def report(location, document):
    assert isinstance(location, six.string_types)

    if location.endswith('.py'):
        return report_pyflakes(document)
    else:
        return []
Run reporter on document and return list of ReporterError instances.
dataset/ETHPy150Open jonathanslenders/pyvim/pyvim/reporting.py/report