diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-18 18:04:18 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-18 18:04:18 -0400 |
commit | 8021196662dcadf161cbeaebb3be4b0392b51803 (patch) | |
tree | d8400d8e89e4998b5fd181696ab9675c89b397ff /coverage/inorout.py | |
parent | 50a0e37ad2e7a5ec655a797f0688f616c8b1a56f (diff) | |
download | python-coveragepy-git-8021196662dcadf161cbeaebb3be4b0392b51803.tar.gz |
refactor: no need for specialized pyexpat code anymore
The pyexpat bug that plagued us was fixed in Python 3.4:
https://bugs.python.org/issue22462
We no longer need the code that adapted to it. The test will remain, couldn't
hurt.
Diffstat (limited to 'coverage/inorout.py')
-rw-r--r-- | coverage/inorout.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/coverage/inorout.py b/coverage/inorout.py index 2c216ea9..6bdac06e 100644 --- a/coverage/inorout.py +++ b/coverage/inorout.py @@ -349,11 +349,6 @@ class InOrOut: # can't do anything with the data later anyway. return nope(disp, "not a real file name") - # pyexpat does a dumb thing, calling the trace function explicitly from - # C code with a C file name. - if re.search(r"[/\\]Modules[/\\]pyexpat.c", filename): - return nope(disp, "pyexpat lies about itself") - # Jython reports the .class file to the tracer, use the source file. if filename.endswith("$py.class"): filename = filename[:-9] + ".py" |