BPO | [37364](https://bugs.python.org/issue37364) --- | :--- Nosy | @tiran, @zooba, @miss-islington PRs | python/cpython#14299python/cpython#14300 *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: ```python assignee = 'https://github.com/zooba' closed_at = created_at = labels = ['type-bug', '3.8', '3.9'] title = 'Use io.open_code for .pth files' updated_at = user = 'https://github.com/zooba' ``` bugs.python.org fields: ```python activity = actor = 'steve.dower' assignee = 'steve.dower' closed = True closed_date = closer = 'steve.dower' components = [] creation = creator = 'steve.dower' dependencies = [] files = [] hgrepos = [] issue_num = 37364 keywords = ['patch'] message_count = 4.0 messages = ['346230', '346231', '346259', '346263'] nosy_count = 3.0 nosy_names = ['christian.heimes', 'steve.dower', 'miss-islington'] pr_nums = ['14299', '14300'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue37364' versions = ['Python 3.8', 'Python 3.9'] ```
Activity
zooba commentedon Jun 21, 2019
Since .pth files may contain executable code, we should open them using io.open_code().
tiran commentedon Jun 21, 2019
+1
miss-islington commentedon Jun 21, 2019
New changeset 184f3d4 by Miss Islington (bot) (Steve Dower) in branch 'master':
bpo-37364: Use io.open_code() to read .pth files (GH-14299)
184f3d4
miss-islington commentedon Jun 21, 2019
New changeset 35202c7 by Miss Islington (bot) in branch '3.8':
bpo-37364: Use io.open_code() to read .pth files (GH-14299)
35202c7