diff options
author | Antoine Pitrou <antoine@python.org> | 2021-03-20 19:07:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 19:07:44 (GMT) |
commit | 2fd16ef406bba239b1334057fb499496a84b3aa2 (patch) | |
tree | 0aca40303f31a7c1b22108eeba1afd9ae3b8ba60 /Python | |
parent | 7cb033c423b65def1632d6c3c747111543b342a2 (diff) | |
download | cpython-2fd16ef406bba239b1334057fb499496a84b3aa2.zip cpython-2fd16ef406bba239b1334057fb499496a84b3aa2.tar.gz cpython-2fd16ef406bba239b1334057fb499496a84b3aa2.tar.bz2 |
bpo-43517: Fix false positive in detection of circular imports (#24895)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |