From 2fd16ef406bba239b1334057fb499496a84b3aa2 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 20 Mar 2021 20:07:44 +0100 Subject: bpo-43517: Fix false positive in detection of circular imports (#24895) --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/import.c') 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; } } -- cgit v1.2.1