From f703ae86ce82834205e791d0c138f901494ddad0 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 9 Aug 2015 09:58:18 -0400 Subject: Remove should_be_python from the FileReporter interface --- coverage/report.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/report.py') diff --git a/coverage/report.py b/coverage/report.py index fa08186..1be4155 100644 --- a/coverage/report.py +++ b/coverage/report.py @@ -87,5 +87,7 @@ class Reporter(object): except NotPython: # Only report errors for .py files, and only if we didn't # explicitly suppress those errors. + # NotPython is only raised by PythonFileReporter, which has a + # should_be_python() method. if fr.should_be_python() and not self.config.ignore_errors: raise -- cgit v1.2.1