gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605)

This commit is contained in:
Itamar Oren 2025-11-26 05:12:49 -08:00 committed by GitHub
parent d7f0214f13
commit 27f62eb711
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 212 additions and 16 deletions

View file

@ -156,7 +156,6 @@ _Py_ext_module_loader_info_init_for_builtin(
PyObject *name)
{
assert(PyUnicode_Check(name));
assert(PyUnicode_FindChar(name, '.', 0, PyUnicode_GetLength(name), -1) == -1);
assert(PyUnicode_GetLength(name) > 0);
PyObject *name_encoded = PyUnicode_AsEncodedString(name, "ascii", NULL);