mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Issue #24285: fix importing extensions from packages
This commit is contained in:
parent
6f68314b2a
commit
55871f04bf
3 changed files with 13 additions and 2 deletions
|
@ -45,7 +45,7 @@ get_encoded_name(PyObject *name, const char **hook_prefix) {
|
|||
if (lastdot < -1) {
|
||||
return NULL;
|
||||
} else if (lastdot >= 0) {
|
||||
tmp = PyUnicode_Substring(name, lastdot, name_len);
|
||||
tmp = PyUnicode_Substring(name, lastdot + 1, name_len);
|
||||
if (tmp == NULL)
|
||||
return NULL;
|
||||
name = tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue