Skip to content

Use io.open_code for .pth files #81545

Closed
Closed

Description

@zooba
BPO 37364
Nosy @tiran, @zooba, @miss-islington
PRs
  • bpo-37364: Use io.open_code() to read .pth files #14299
  • [3.8] bpo-37364: Use io.open_code() to read .pth files (GH-14299) #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:

    assignee = 'https://github.com/zooba'
    closed_at = <Date 2019-06-21.22:56:35.329>
    created_at = <Date 2019-06-21.15:46:04.888>
    labels = ['type-bug', '3.8', '3.9']
    title = 'Use io.open_code for .pth files'
    updated_at = <Date 2019-06-21.22:56:35.328>
    user = 'https://github.com/zooba'

    bugs.python.org fields:

    activity = <Date 2019-06-21.22:56:35.328>
    actor = 'steve.dower'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2019-06-21.22:56:35.329>
    closer = 'steve.dower'
    components = []
    creation = <Date 2019-06-21.15:46:04.888>
    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

    1. zooba commented on Jun 21, 2019

      @zooba
      MemberAuthor

      Since .pth files may contain executable code, we should open them using io.open_code().

    2. tiran commented on Jun 21, 2019

      @tiran
      Member

      +1

    3. self-assigned this
      on Jun 21, 2019
    4. miss-islington commented on Jun 21, 2019

      @miss-islington
      Contributor

      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

    5. miss-islington commented on Jun 21, 2019

      @miss-islington
      Contributor

      New changeset 35202c7 by Miss Islington (bot) in branch '3.8':
      bpo-37364: Use io.open_code() to read .pth files (GH-14299)
      35202c7

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of life3.9 (EOL)end of lifetype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions