diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-09-06 22:54:35 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-09-06 22:54:35 -0400 |
commit | 825acb3051853f0ac849df5bc15920ba932391e1 (patch) | |
tree | 434b48caebdb18f5afc488269987b164e2c9adf7 /coverage/codeunit.py | |
parent | aef97b8882265a821bffe08fb7a633c1d5eabdb7 (diff) | |
download | python-coveragepy-git-825acb3051853f0ac849df5bc15920ba932391e1.tar.gz |
Where we deal with .pyc files, also deal with .pyo files. Fixes #195.
Diffstat (limited to 'coverage/codeunit.py')
-rw-r--r-- | coverage/codeunit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/codeunit.py b/coverage/codeunit.py index 1999c50c..eb55489d 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -52,7 +52,7 @@ class CodeUnit(object): else: f = morf # .pyc files should always refer to a .py instead. - if f.endswith('.pyc'): + if f.endswith('.pyc') or f.endswith('.pyo'): f = f[:-1] self.filename = self.file_locator.canonical_filename(f) |