diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-04-18 07:27:59 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-04-18 07:27:59 -0400 |
commit | 42f5efa9bc9e5ec2fd02f9cf6b95541a93fca632 (patch) | |
tree | 28baf3d41e7a89c1082a9b6e9138474a50a0124e /coverage/control.py | |
parent | ac8cf1852de2837234dab8cc823127e70c48e55e (diff) | |
download | python-coveragepy-42f5efa9bc9e5ec2fd02f9cf6b95541a93fca632.tar.gz |
Don't complain about files that can't be parsed as Python if they didn't seem like Python at all. #82.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/coverage/control.py b/coverage/control.py index ddeb77c..eea6b00 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 |