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/python.py | |
parent | 85c7a4ac4161c4eb2efeaf07e6f833d3a073b018 (diff) | |
download | python-coveragepy-git-45787e29dea3a41f2e9570b66a571a7ebcda4592.tar.gz |
refactor: removed mentions of Jython and IronPython
Diffstat (limited to 'coverage/python.py')
-rw-r--r-- | coverage/python.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/coverage/python.py b/coverage/python.py index 70d38fe3..2d2faa14 100644 --- a/coverage/python.py +++ b/coverage/python.py @@ -35,10 +35,6 @@ def read_python_source(filename: str) -> bytes: with open(filename, "rb") as f: source = f.read() - if env.IRONPYTHON: - # IronPython reads Unicode strings even for "rb" files. - source = bytes(source) - return source.replace(b"\r\n", b"\n").replace(b"\r", b"\n") @@ -126,10 +122,6 @@ def source_for_file(filename: str) -> str: # Didn't find source, but it's probably the .py file we want. return py_filename - elif filename.endswith("$py.class"): - # Jython is easy to guess. - return filename[:-9] + ".py" - # No idea, just use the file name as-is. return filename |