From 7920662665c20e39d3a470859ec6e7d322607602 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Jan 2017 15:19:26 -0500 Subject: One more tweak to StopEverything --- coverage/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/parser.py') 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." ) -- cgit v1.2.1