From 67ea897f611a86fee7e3846ad3c4bc564cac6264 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 18 Apr 2012 07:27:59 -0400 Subject: Don't complain about files that can't be parsed as Python if they didn't seem like Python at all. #82. --- coverage/control.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index ddeb77c0..eea6b00a 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -222,14 +222,6 @@ class coverage(object): # can't do anything with the data later anyway. return False - if filename.endswith(".html"): - # Jinja and maybe other templating systems compile templates into - # Python code, but use the template filename as the filename in - # the compiled code. Of course, those filenames are useless later - # so don't bother collecting. TODO: How should we really separate - # out good file extensions from bad? - return False - self._check_for_packages() # Compiled Python files have two filenames: frame.f_code.co_filename is -- cgit v1.2.1