summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-09-28 11:07:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-09-28 11:07:41 -0400
commit1d179a1077819aec18b960a3fa24ea3490c884a5 (patch)
tree82cbfa11032e782578faa1eeaaca3dd6ae9c9b80 /coverage/misc.py
parenta9739749d841818a31ae956fe02e0b3f03a82a31 (diff)
downloadpython-coveragepy-1d179a1077819aec18b960a3fa24ea3490c884a5.tar.gz
Now we can run .pyc files directly. Closes #264.
Diffstat (limited to 'coverage/misc.py')
-rw-r--r--coverage/misc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 473d7d4..2d2662d 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -146,6 +146,10 @@ class NoSource(CoverageException):
"""We couldn't find the source for a module."""
pass
+class NoCode(NoSource):
+ """We couldn't find any code at all."""
+ pass
+
class NotPython(CoverageException):
"""A source file turned out not to be parsable Python."""
pass