mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04: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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user