diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-26 10:48:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-26 10:48:29 -0500 |
commit | ff0f1ae98dad66594cd34b5aa7c24e909554bad3 (patch) | |
tree | fdcac4f02baa46101c4ab0cfe6904823b3b600cc /coverage/codeunit.py | |
parent | 0dd9c8fb84dab988f1e34421bb91d53d45da807b (diff) | |
download | python-coveragepy-ff0f1ae98dad66594cd34b5aa7c24e909554bad3.tar.gz |
Unify and clarify reading Python source. Probably broke .pyw files
Diffstat (limited to 'coverage/codeunit.py')
-rw-r--r-- | coverage/codeunit.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/codeunit.py b/coverage/codeunit.py index 09b86fe..1182398 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -169,6 +169,8 @@ class PythonCodeUnit(CodeUnit): return self._source def get_parser(self, exclude=None): + return PythonParser(filename=self.filename, exclude=exclude) + # TODO: REMOVE THIS USELESS CODE! actual_filename, source = self._find_source(self.filename) return PythonParser( text=source, filename=actual_filename, exclude=exclude, |