diff options
author | Geoff Bache <none@none> | 2010-12-10 21:34:14 +0100 |
---|---|---|
committer | Geoff Bache <none@none> | 2010-12-10 21:34:14 +0100 |
commit | 8216f6839fe4f07b5e05f55ffcb34b8d8c684c93 (patch) | |
tree | d805636ae7d71616e4fbf7ddb6dcf5038ab8f298 /coverage/codeunit.py | |
parent | 661145c137e4159859663e047d4890b132203a42 (diff) | |
download | python-coveragepy-git-8216f6839fe4f07b5e05f55ffcb34b8d8c684c93.tar.gz |
Handle compiled files under Jython
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 dfc4560d..ac90cb21 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -54,6 +54,8 @@ class CodeUnit(object): # .pyc files should always refer to a .py instead. if f.endswith('.pyc'): f = f[:-1] + elif f.endswith('$py.class'): # jython + f = f[:-9] + ".py" self.filename = self.file_locator.canonical_filename(f) if hasattr(morf, '__name__'): |