mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Fix smelly
This commit is contained in:
parent
a39cd25f15
commit
f70d4df39c
3 changed files with 4 additions and 2 deletions
|
|
@ -2654,6 +2654,8 @@ TESTSUBDIRS= idlelib/idle_test \
|
||||||
test/test_import/data/package3 \
|
test/test_import/data/package3 \
|
||||||
test/test_import/data/package4 \
|
test/test_import/data/package4 \
|
||||||
test/test_import/data/unwritable \
|
test/test_import/data/unwritable \
|
||||||
|
test/test_import/data/lazy_imports \
|
||||||
|
test/test_import/data/lazy_imports/pkg \
|
||||||
test/test_importlib \
|
test/test_importlib \
|
||||||
test/test_importlib/builtin \
|
test/test_importlib/builtin \
|
||||||
test/test_importlib/extension \
|
test/test_importlib/extension \
|
||||||
|
|
|
||||||
|
|
@ -3476,7 +3476,7 @@ _PyEval_ImportNameWithImport(PyThreadState *tstate, PyObject *import_func, PyObj
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
check_lazy_import_comatibility(PyThreadState *tstate, PyObject *globals,
|
check_lazy_import_comatibility(PyThreadState *tstate, PyObject *globals,
|
||||||
PyObject *name, PyObject *level)
|
PyObject *name, PyObject *level)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4052,7 +4052,7 @@ import_find_and_load(PyThreadState *tstate, PyObject *abs_name)
|
||||||
#undef accumulated
|
#undef accumulated
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject *
|
static PyObject *
|
||||||
get_abs_name(PyThreadState *tstate, PyObject *name, PyObject *globals, int level)
|
get_abs_name(PyThreadState *tstate, PyObject *name, PyObject *globals, int level)
|
||||||
{
|
{
|
||||||
if (level > 0) {
|
if (level > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue