diff options
| author | Antoine Pitrou <antoine@python.org> | 2021-03-20 19:40:18 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 19:40:18 (GMT) |
| commit | ac17ed60f2033253248be494a8e1980fe7e3531d (patch) | |
| tree | 543843154e3c076fe7aadcc2aa4c41c7323a533e /Python/import.c | |
| parent | e8e341993e3f80a3c456fb8e0219530c93c13151 (diff) | |
| download | cpython-ac17ed60f2033253248be494a8e1980fe7e3531d.zip cpython-ac17ed60f2033253248be494a8e1980fe7e3531d.tar.gz cpython-ac17ed60f2033253248be494a8e1980fe7e3531d.tar.bz2 | |
[3.9] bpo-43517: Fix false positive in detection of circular imports (GH-24895) (GH-24948)
(cherry picked from commit 2fd16ef406bba239b1334057fb499496a84b3aa2)
Co-authored-by: Antoine Pitrou <antoine@python.org>
Automerge-Triggered-By: GH:pitrou
Diffstat (limited to 'Python/import.c')
| -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 5e39a2f..55fbe41 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1863,7 +1863,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals, } if (mod != NULL && mod != Py_None) { - if (import_ensure_initialized(tstate, mod, name) < 0) { + if (import_ensure_initialized(tstate, mod, abs_name) < 0) { goto error; } } |
