classification
Title: Use io.open_code for .pth files
Type: behavior Stage: resolved
Components: Versions: Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: steve.dower Nosy List: christian.heimes, miss-islington, steve.dower
Priority: normal Keywords: patch

Created on 2019-06-21 15:46 by steve.dower, last changed 2019-06-21 22:56 by steve.dower. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 14299 merged steve.dower, 2019-06-21 21:43
PR 14300 merged miss-islington, 2019-06-21 22:17
Messages (4)
msg346230 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2019-06-21 15:46
Since .pth files may contain executable code, we should open them using io.open_code().
msg346231 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2019-06-21 15:50
+1
msg346259 - (view) Author: miss-islington (miss-islington) Date: 2019-06-21 22:16
New changeset 184f3d4f39056f6fe450d007d3b9b61d811a2a4d by Miss Islington (bot) (Steve Dower) in branch 'master':
bpo-37364: Use io.open_code() to read .pth files (GH-14299)
https://github.com/python/cpython/commit/184f3d4f39056f6fe450d007d3b9b61d811a2a4d
msg346263 - (view) Author: miss-islington (miss-islington) Date: 2019-06-21 22:35
New changeset 35202c763703c9c00345b4445a638211e6e37bbc by Miss Islington (bot) in branch '3.8':
bpo-37364: Use io.open_code() to read .pth files (GH-14299)
https://github.com/python/cpython/commit/35202c763703c9c00345b4445a638211e6e37bbc
History
Date User Action Args
2019-06-21 22:56:35steve.dowersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-06-21 22:35:48miss-islingtonsetmessages: + msg346263
2019-06-21 22:17:52miss-islingtonsetpull_requests: + pull_request14124
2019-06-21 22:16:52miss-islingtonsetnosy: + miss-islington
messages: + msg346259
2019-06-21 21:43:56steve.dowersetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request14123
2019-06-21 21:43:20steve.dowersetassignee: steve.dower
2019-06-21 15:50:56christian.heimessetmessages: + msg346231
2019-06-21 15:46:04steve.dowercreate