summaryrefslogtreecommitdiff
path: root/coverage/report.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-09 09:58:18 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-09 09:58:18 -0400
commitdb93205a36d4e55ae01c0c625c446b74e0438797 (patch)
tree251ad369b397d82df8815ea55ddb668087d4f1b4 /coverage/report.py
parentd7f2c64b7071d20378d6864cc4ec1c1c83b09175 (diff)
downloadpython-coveragepy-git-db93205a36d4e55ae01c0c625c446b74e0438797.tar.gz
Remove should_be_python from the FileReporter interface
Diffstat (limited to 'coverage/report.py')
-rw-r--r--coverage/report.py2
1 files changed, 2 insertions, 0 deletions
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