When used as an entry point, the `trace` module opens code files without using `io.open_code`: https://github.com/python/cpython/blob/main/Lib/trace.py#L719 This should use the `io.open_code` method instead of `open(..., 'rb')`. <!-- gh-linked-prs --> ### Linked PRs * gh-103947 * gh-103950 * gh-103952 * gh-103953 * gh-103954 <!-- /gh-linked-prs -->
When used as an entry point, the
tracemodule opens code files without usingio.open_code:https://github.com/python/cpython/blob/main/Lib/trace.py#L719
This should use the
io.open_codemethod instead ofopen(..., 'rb').Linked PRs
io.open_code()to open executable file #103947io.open_code()when executing code in trace and profile modules (GH-103947) #103950io.open_code()when executing code in trace and profile modules (GH-103947) #103952io.open_code()when executing code in trace and profile modules (GH-103947) #103953io.open_code()when executing code in trace and profile modules (GH-103947) #103954