mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Issue #14605: Use None in sys.path_importer_cache to represent no
finder instead of using some (now non-existent) implicit finder.
This commit is contained in:
parent
9e66ac683c
commit
aa93642a35
7 changed files with 1096 additions and 1172 deletions
|
@ -224,7 +224,7 @@ RunMainFromImporter(wchar_t *filename)
|
|||
if (importer == NULL)
|
||||
goto error;
|
||||
|
||||
if (importer->ob_type == &PyNullImporter_Type) {
|
||||
if (importer == Py_None) {
|
||||
Py_DECREF(argv0);
|
||||
Py_DECREF(importer);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue