bpo-38722: Runpy use io.open_code()#17234
Conversation
This should be working but test.test_tools is failing when doing the full test. Switching branches to work on something else right now.
| @@ -0,0 +1 @@ | |||
| :mod:`runpy` now uses :meth:`io.open_code` which will trigger auditing events. No newline at end of file | |||
There was a problem hiding this comment.
open() and io.open() also trigger auditing events. And as far as I can tell, this won't change anything WRT auditing; it only allows setting an "open code hook" using PyFile_SetOpenCodeHook. So this text needs to be revised.
There was a problem hiding this comment.
I've updated with a better description of what the change really means/does.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
Thanks @jsnklln for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
GH-17241 is a backport of this pull request to the 3.8 branch. |
|
Thanks @jsnklln! |
|
Thanks, @zooba! Since this is apparently a security-related issue, I've backported it. |
|
Thanks @jsnklln for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
GH-17244 is a backport of this pull request to the 3.8 branch. |
https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat (cherry picked from commit e243bae) Co-authored-by: jsnklln <jsnklln@gmail.com>
https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat
https://bugs.python.org/issue38722 Automerge-Triggered-By: @taleinat
https://bugs.python.org/issue38722
Automerge-Triggered-By: @taleinat