summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorAntoine Pitrou <antoine@python.org>2021-03-20 20:07:44 +0100
committerGitHub <noreply@github.com>2021-03-20 20:07:44 +0100
commit2fd16ef406bba239b1334057fb499496a84b3aa2 (patch)
tree0aca40303f31a7c1b22108eeba1afd9ae3b8ba60 /Python/import.c
parent7cb033c423b65def1632d6c3c747111543b342a2 (diff)
downloadcpython-git-2fd16ef406bba239b1334057fb499496a84b3aa2.tar.gz
bpo-43517: Fix false positive in detection of circular imports (#24895)
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 538db69af6..d92e46aa67 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;
}
}