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/inorout.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'coverage/inorout.py') diff --git a/coverage/inorout.py b/coverage/inorout.py index 65aec83c..4be4a85d 100644 --- a/coverage/inorout.py +++ b/coverage/inorout.py @@ -81,10 +81,6 @@ def name_for_module(filename: str, frame: Optional[FrameType]) -> str: """ module_globals = frame.f_globals if frame is not None else {} - if module_globals is None: # pragma: only ironpython - # IronPython doesn't provide globals: https://github.com/IronLanguages/main/issues/1296 - module_globals = {} # type: ignore[unreachable] - dunder_name: str = module_globals.get('__name__', None) if isinstance(dunder_name, str) and dunder_name != '__main__': @@ -349,10 +345,6 @@ class InOrOut: # can't do anything with the data later anyway. return nope(disp, "not a real file name") - # Jython reports the .class file to the tracer, use the source file. - if filename.endswith("$py.class"): - filename = filename[:-9] + ".py" - canonical = canonical_filename(filename) disp.canonical_filename = canonical -- cgit v1.2.1