diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-23 17:28:28 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-23 17:28:28 -0500 |
commit | d30dbd3db7957ac22bf53fb34d4cb833b1ec4382 (patch) | |
tree | 1e8e782f471629cf7ffb7778e17256dba640aaad /coverage/codeunit.py | |
parent | d280a21a643b7898aaa666d0109d1d13eaeb6106 (diff) | |
parent | 8216f6839fe4f07b5e05f55ffcb34b8d8c684c93 (diff) | |
download | python-coveragepy-git-d30dbd3db7957ac22bf53fb34d4cb833b1ec4382.tar.gz |
Merged Geoff's change
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 eb55489d..2b581d0d 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') or f.endswith('.pyo'): 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__'): |