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.
1 parent ea28d2b commit 5b01fb5Copy full SHA for 5b01fb5
1 file changed
Python/import.c
@@ -4468,10 +4468,7 @@ _PyImport_LazyImportModuleLevelObject(PyThreadState *tstate,
4468
PyObject *globals, PyObject *locals,
4469
PyObject *fromlist, int level)
4470
{
4471
- if (name == NULL) {
4472
- _PyErr_SetString(tstate, PyExc_ValueError, "Empty module name");
4473
- return NULL;
4474
- }
+ assert(name != NULL);
4475
if (!PyUnicode_Check(name)) {
4476
_PyErr_Format(tstate, PyExc_TypeError,
4477
"module name must be a string, got %T", name);
0 commit comments