Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 6256:ce2092714484 legacy-trunk
Bugfix: import A.B from inside package was busted by mark_miss optimization.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 07 Sep 1997 06:16:57 +0000 |
| parents | 6429db5d0af7 |
| children | 337054e9d4fa |
line wrap: on
line diff
--- a/Python/import.c Sun Sep 07 06:12:11 1997 +0000 +++ b/Python/import.c Sun Sep 07 06:16:57 1997 +0000 @@ -1170,7 +1170,7 @@ 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);
