Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
When used as an entry point, thetrace module opens code files without usingio.open_code:
https://github.com/python/cpython/blob/main/Lib/trace.py#L719
This should use theio.open_code method instead ofopen(..., 'rb').
Linked PRs
- gh-103935: Use
io.open_code()to open executable file #103947 - [3.11] gh-103935: Use
io.open_code()when executing code in trace and profile modules (GH-103947) #103950 - [3.10] gh-103935: Use
io.open_code()when executing code in trace and profile modules (GH-103947) #103952 - [3.9] gh-103935: Use
io.open_code()when executing code in trace and profile modules (GH-103947) #103953 - [3.8] gh-103935: Use
io.open_code()when executing code in trace and profile modules (GH-103947) #103954