diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-30 18:07:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-12-30 18:35:09 -0500 |
commit | 45787e29dea3a41f2e9570b66a571a7ebcda4592 (patch) | |
tree | 7eeadde7d7a033e27abd1df7411bb525bd711148 /coverage/inorout.py | |
parent | 85c7a4ac4161c4eb2efeaf07e6f833d3a073b018 (diff) | |
download | python-coveragepy-git-45787e29dea3a41f2e9570b66a571a7ebcda4592.tar.gz |
refactor: removed mentions of Jython and IronPython
Diffstat (limited to 'coverage/inorout.py')
-rw-r--r-- | coverage/inorout.py | 8 |
1 files changed, 0 insertions, 8 deletions
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 |