mirror of
https://github.com/python/cpython.git
synced 2026-04-16 00:31:03 +00:00
gh-148110: Resolve lazy import filter names for relative imports (#148111)
This commit is contained in:
parent
a0c57a8d17
commit
ca960b6f38
7 changed files with 197 additions and 8 deletions
|
|
@ -4523,7 +4523,7 @@ _PyImport_LazyImportModuleLevelObject(PyThreadState *tstate,
|
|||
assert(!PyErr_Occurred());
|
||||
fromlist = Py_NewRef(Py_None);
|
||||
}
|
||||
PyObject *args[] = {modname, name, fromlist};
|
||||
PyObject *args[] = {modname, abs_name, fromlist};
|
||||
PyObject *res = PyObject_Vectorcall(filter, args, 3, NULL);
|
||||
|
||||
Py_DECREF(modname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue