diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-21 15:19:26 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-21 15:19:26 -0500 |
commit | 742d251b2f19a562f7e9b7ad7182feb216e8b638 (patch) | |
tree | 11eddd21f5d7b9cfc9501e215001e2b0e1de3895 /coverage/parser.py | |
parent | 1e143ff126b1e3c24c61f1c1e613611637eeb194 (diff) | |
download | python-coveragepy-742d251b2f19a562f7e9b7ad7182feb216e8b638.tar.gz |
One more tweak to StopEverything
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 6e9bd54..ca6745f 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." ) |