mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Bugfix: import A.B from inside package was busted by mark_miss optimization.
This commit is contained in:
parent
10887a3067
commit
0c81945808
1 changed files with 1 additions and 1 deletions
|
|
@ -1170,7 +1170,7 @@ load_next(mod, altmod, p_name, buf, p_buflen)
|
|||
if (result == Py_None && altmod != mod) {
|
||||
Py_DECREF(result);
|
||||
/* Here, altmod must be None and mod must not be None */
|
||||
result = import_submodule(altmod, name, name);
|
||||
result = import_submodule(altmod, p, p);
|
||||
if (result != NULL && result != Py_None) {
|
||||
if (mark_miss(buf) != 0) {
|
||||
Py_DECREF(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue