]> granicus.if.org Git - python/commitdiff
Bugfix: import A.B from inside package was busted by mark_miss optimization.
authorGuido van Rossum <guido@python.org>
Sun, 7 Sep 1997 06:16:57 +0000 (06:16 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 7 Sep 1997 06:16:57 +0000 (06:16 +0000)
Python/import.c

index a53abaebb135022a657c98aca4ae86ff129b0d72..95e5aa9e65020e62749ab33840c0a39d4f7abcb4 100644 (file)
@@ -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);