Kaydet (Commit) 0c819458 authored tarafından Guido van Rossum's avatar Guido van Rossum

Bugfix: import A.B from inside package was busted by mark_miss optimization.

üst 10887a30
...@@ -1170,7 +1170,7 @@ load_next(mod, altmod, p_name, buf, p_buflen) ...@@ -1170,7 +1170,7 @@ load_next(mod, altmod, p_name, buf, p_buflen)
if (result == Py_None && altmod != mod) { if (result == Py_None && altmod != mod) {
Py_DECREF(result); Py_DECREF(result);
/* Here, altmod must be None and mod must not be None */ /* 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 (result != NULL && result != Py_None) {
if (mark_miss(buf) != 0) { if (mark_miss(buf) != 0) {
Py_DECREF(result); Py_DECREF(result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment