summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-21 15:19:26 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-21 15:19:26 -0500
commit7920662665c20e39d3a470859ec6e7d322607602 (patch)
tree625d65a2f9c17f04e79e91a76a6f75f132055825 /coverage/parser.py
parent19483399663fb9a78b012998a9e4be16176db707 (diff)
downloadpython-coveragepy-git-7920662665c20e39d3a470859ec6e7d322607602.tar.gz
One more tweak to StopEverything
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index 6e9bd54a..ca6745f9 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -16,7 +16,7 @@ from coverage.backward import bytes_to_ints, string_class
from coverage.bytecode import CodeObjects
from coverage.debug import short_stack
from coverage.misc import contract, join_regex, new_contract, nice_pair, one_of
-from coverage.misc import NoSource, IncapablePython, NotPython
+from coverage.misc import NoSource, NotPython, StopEverything
from coverage.phystokens import compile_unicode, generate_tokens, neuter_encoding_declaration
@@ -373,7 +373,7 @@ class ByteParser(object):
# attributes on code objects that we need to do the analysis.
for attr in ['co_lnotab', 'co_firstlineno']:
if not hasattr(self.code, attr):
- raise IncapablePython( # pragma: only jython
+ raise StopEverything( # pragma: only jython
"This implementation of Python doesn't support code analysis.\n"
"Run coverage.py under another Python for this command."
)