commit | aa93642a35ed570ba91a80c583df2c8a383686d6 | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Fri Apr 27 15:30:58 2012 -0400 |
committer | Brett Cannon <brett@python.org> | Fri Apr 27 15:30:58 2012 -0400 |
tree | ba6049cf83600cb3afe6d9e8d52c0b9480b5b22b | |
parent | 9e66ac683cce9f6e4abda7d01836dab70eeefb49 [diff] |
Issue #14605: Use None in sys.path_importer_cache to represent no finder instead of using some (now non-existent) implicit finder.
diff --git a/Modules/main.c b/Modules/main.c index 6eb05e9..e262552 100644 --- a/Modules/main.c +++ b/Modules/main.c
@@ -224,7 +224,7 @@ if (importer == NULL) goto error; - if (importer->ob_type == &PyNullImporter_Type) { + if (importer == Py_None) { Py_DECREF(argv0); Py_DECREF(importer); return -1;