From 45787e29dea3a41f2e9570b66a571a7ebcda4592 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 30 Dec 2022 18:07:36 -0500 Subject: refactor: removed mentions of Jython and IronPython --- coverage/parser.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'coverage/parser.py') diff --git a/coverage/parser.py b/coverage/parser.py index 9c71e2d3..3512fdc3 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -21,7 +21,7 @@ from typing import ( from coverage import env from coverage.bytecode import code_objects from coverage.debug import short_stack -from coverage.exceptions import NoSource, NotPython, _StopEverything +from coverage.exceptions import NoSource, NotPython from coverage.misc import join_regex, nice_pair from coverage.phystokens import generate_tokens from coverage.types import Protocol, TArc, TLineNo @@ -393,15 +393,6 @@ class ByteParser: ) ) from synerr - # Alternative Python implementations don't always provide all the - # 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 _StopEverything( # pragma: only jython - "This implementation of Python doesn't support code analysis.\n" + - "Run coverage.py under another Python for this command." - ) - def child_parsers(self) -> Iterable[ByteParser]: """Iterate over all the code objects nested within this one. -- cgit v1.2.1