mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605)
This commit is contained in:
parent
d7f0214f13
commit
27f62eb711
3 changed files with 212 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue