You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pdb._runscript should use io.open_code() instead of open() #82904
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-11-12.22:49:40.640>created_at=<Date2019-11-06.16:05:27.455>labels= ['type-security', '3.8', 'library', '3.9']
title='Pdb._runscript should use io.open_code() instead of open()'updated_at=<Date2019-11-12.23:09:11.369>user='https://github.com/plokmijnuhby'
I flipped through PEP-578 (Runtime Audit Hooks) and this seems like the type of situation that PEP-578 was trying to handle. I've got a change that seems to be working and can provide a PR or whatever once I remember/read up on doing that. (I'm a very seldom contributor and am more than happy to defer to those that know more than me.)
New changeset d593881 by Steve Dower (jsnklln) in branch 'master': bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127) d593881
New changeset 0a8e7fd by Miss Islington (bot) in branch '3.8': bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127) 0a8e7fd
Activity
plokmijnuhby commentedon Nov 6, 2019
Fairly obviously, if you're using something called _runscript you're probably trying to run some code. To do this it has to open the script as a file.
This is similar to two other issues I'm posting, but they're in different modules, so different bugs.
jsnklln commentedon Nov 8, 2019
I flipped through PEP-578 (Runtime Audit Hooks) and this seems like the type of situation that PEP-578 was trying to handle. I've got a change that seems to be working and can provide a PR or whatever once I remember/read up on doing that. (I'm a very seldom contributor and am more than happy to defer to those that know more than me.)
zooba commentedon Nov 12, 2019
New changeset d593881 by Steve Dower (jsnklln) in branch 'master':
bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)
d593881
zooba commentedon Nov 12, 2019
Thanks for the PR!
miss-islington commentedon Nov 12, 2019
New changeset 0a8e7fd by Miss Islington (bot) in branch '3.8':
bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)
0a8e7fd