mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605) (#141986)
gh-140011: Delete importdl assertion that prevents importing embedded modules from packages (GH-141605)
(cherry picked from commit 27f62eb711)
This commit is contained in:
parent
d8a72b4c5e
commit
f7d17ac9f8
3 changed files with 211 additions and 2 deletions
|
|
@ -175,7 +175,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