From db93205a36d4e55ae01c0c625c446b74e0438797 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 fa081862..1be4155d 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