We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__lazy_import__
1 parent 645f5c4 commit 5a7a4f2Copy full SHA for 5a7a4f2
Python/import.c
@@ -4501,6 +4501,9 @@ _PyImport_LazyImportModuleLevelObject(PyThreadState *tstate,
4501
assert(!PyErr_Occurred());
4502
modname = Py_NewRef(Py_None);
4503
}
4504
+ if (fromlist == NULL) {
4505
+ fromlist = Py_NewRef(Py_None);
4506
+ }
4507
PyObject *args[] = {modname, name, fromlist};
4508
PyObject *res = PyObject_Vectorcall(filter, args, 3, NULL);
4509
0 commit comments