https://github.com/python/cpython/commit/e90e6d155a58c2bf442e69ee66aef32c668f4a42 commit: e90e6d155a58c2bf442e69ee66aef32c668f4a42 branch: main author: Yongtao Huang <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2025-12-14T11:39:45+02:00 summary:
gh-142666: Remove unused variable package in import logic (GH-142667) The variable was previously used, but became unused after 133138a284b. Signed-off-by: Yongtao Huang <[email protected]> files: M Python/import.c diff --git a/Python/import.c b/Python/import.c index 2860ae032dfe29..f4decf6e5cd247 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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); } _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
