Skip to content

Commit e90e6d1

Browse files
gh-142666: Remove unused variable package in import logic (GH-142667)
The variable was previously used, but became unused after 133138a. Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
1 parent a154c9e commit e90e6d1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/import.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,7 +3827,6 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
38273827
PyObject *abs_name = NULL;
38283828
PyObject *final_mod = NULL;
38293829
PyObject *mod = NULL;
3830-
PyObject *package = NULL;
38313830
PyInterpreterState *interp = tstate->interp;
38323831
int has_from;
38333832

@@ -3956,7 +3955,6 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
39563955
error:
39573956
Py_XDECREF(abs_name);
39583957
Py_XDECREF(mod);
3959-
Py_XDECREF(package);
39603958
if (final_mod == NULL) {
39613959
remove_importlib_frames(tstate);
39623960
}

0 commit comments

Comments
 (0)