Skip to content

Remove unused local variable in PyImport_ImportModuleLevelObject #142666

@hyongtao-code

Description

@hyongtao-code

Bug report

Bug description:

While learning PyImport_ImportModuleLevelObject, I noticed that the local
variable package is initialized to NULL, never assigned or used, and only
passed to Py_XDECREF at function exit.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-refactorCode refactoring (with no changes in behavior)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions