Skip to content

Use "with" to avoid possible fd leaks #67020

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 22831
PRs
  • bpo-22831: Use "with" to avoid possible fd leaks in distutils. #10921
  • bpo-22831: Use "with" to avoid possible fd leaks in tools (part 1). #10926
  • bpo-22831: Use "with" to avoid possible fd leaks in tools (part 2). #10927
  • bpo-22831: Use "with" to avoid possible fd leaks in tests (part 1). #10928
  • bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). #10929
  • Files
  • fd_leaks.diff
  • fd_leaks.ignore-all-space.diff
  • fd_leaks_distutils.patch
  • fd_leaks_lib.patch
  • fd_leaks_tests1.patch
  • fd_leaks_tools2.patch
  • fd_leaks_tests2.patch
  • fd_leaks_tools1.patch
  • fd_leaks_tests1_2.patch
  • fd_leaks_tools1_2.patch
  • fd_leaks_tools2_2.patch
  • fd_leaks_tests2_2.patch
  • 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 = None
    closed_at = <Date 2019-03-30.06:34:13.702>
    created_at = <Date 2014-11-09.19:22:27.681>
    labels = ['type-security', '3.8', '3.9', 'library', 'build', 'tests']
    title = 'Use "with" to avoid possible fd leaks'
    updated_at = <Date 2020-01-28.07:18:39.356>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2020-01-28.07:18:39.356>
    actor = 'Hinsonlcrystal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-03-30.06:34:13.702>
    closer = 'serhiy.storchaka'
    components = ['Build', 'Demos and Tools', 'Library (Lib)', 'Tests']
    creation = <Date 2014-11-09.19:22:27.681>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['37158', '38589', '38592', '38593', '38594', '38595', '38596', '38597', '38601', '38602', '38603', '41480']
    hgrepos = []
    issue_num = 22831
    keywords = ['patch']
    message_count = 23.0
    messages = ['230901', '238602', '238625', '238627', '238643', '238655', '238670', '238671', '238898', '238901', '240050', '257400', '257402', '257587', '331130', '331134', '331137', '332193', '332240', '337169', '337170', '339179', '339180']
    nosy_count = 1.0
    nosy_names = ['Hinsonlcrystal']
    pr_nums = ['10921', '10926', '10927', '10928', '10929']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'security'
    url = 'https://bugs.python.org/issue22831'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of life3.9 (EOL)end of lifebuildThe build process and cross-buildstdlibStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirtype-securityA security issue

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions