mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-142666: Remove unused variable package in import logic (GH-142667)
The variable was previously used, but became unused after 133138a284.
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
This commit is contained in:
parent
a154c9ed4e
commit
e90e6d155a
1 changed files with 0 additions and 2 deletions
|
|
@ -3827,7 +3827,6 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
|
|||
PyObject *abs_name = NULL;
|
||||
PyObject *final_mod = NULL;
|
||||
PyObject *mod = NULL;
|
||||
PyObject *package = NULL;
|
||||
PyInterpreterState *interp = tstate->interp;
|
||||
int has_from;
|
||||
|
||||
|
|
@ -3956,7 +3955,6 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
|
|||
error:
|
||||
Py_XDECREF(abs_name);
|
||||
Py_XDECREF(mod);
|
||||
Py_XDECREF(package);
|
||||
if (final_mod == NULL) {
|
||||
remove_importlib_frames(tstate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue