Fix smelly

This commit is contained in:
Pablo Galindo Salgado 2025-12-06 18:13:41 +00:00
parent a39cd25f15
commit f70d4df39c
3 changed files with 4 additions and 2 deletions

View file

@ -2654,6 +2654,8 @@ TESTSUBDIRS= idlelib/idle_test \
test/test_import/data/package3 \
test/test_import/data/package4 \
test/test_import/data/unwritable \
test/test_import/data/lazy_imports \
test/test_import/data/lazy_imports/pkg \
test/test_importlib \
test/test_importlib/builtin \
test/test_importlib/extension \

View file

@ -3476,7 +3476,7 @@ _PyEval_ImportNameWithImport(PyThreadState *tstate, PyObject *import_func, PyObj
return res;
}
int
static int
check_lazy_import_comatibility(PyThreadState *tstate, PyObject *globals,
PyObject *name, PyObject *level)
{

View file

@ -4052,7 +4052,7 @@ import_find_and_load(PyThreadState *tstate, PyObject *abs_name)
#undef accumulated
}
PyObject *
static PyObject *
get_abs_name(PyThreadState *tstate, PyObject *name, PyObject *globals, int level)
{
if (level > 0) {