commit | 2fd16ef406bba239b1334057fb499496a84b3aa2 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <antoine@python.org> | Sat Mar 20 20:07:44 2021 +0100 |
committer | GitHub <noreply@github.com> | Sat Mar 20 20:07:44 2021 +0100 |
tree | 0aca40303f31a7c1b22108eeba1afd9ae3b8ba60 | |
parent | 7cb033c423b65def1632d6c3c747111543b342a2 [diff] [blame] |
bpo-43517: Fix false positive in detection of circular imports (#24895)
diff --git a/Python/import.c b/Python/import.c index 538db69..d92e46a 100644 --- a/Python/import.c +++ b/Python/import.c
@@ -1593,7 +1593,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals, } if (mod != NULL && mod != Py_None) { - if (import_ensure_initialized(tstate->interp, mod, name) < 0) { + if (import_ensure_initialized(tstate->interp, mod, abs_name) < 0) { goto error; } }