From 8216f6839fe4f07b5e05f55ffcb34b8d8c684c93 Mon Sep 17 00:00:00 2001 From: Geoff Bache Date: Fri, 10 Dec 2010 21:34:14 +0100 Subject: Handle compiled files under Jython --- coverage/codeunit.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/codeunit.py') 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__'): -- cgit v1.2.1