summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-27 19:30:58 (GMT)
committerBrett Cannon <brett@python.org>2012-04-27 19:30:58 (GMT)
commitaa93642a35ed570ba91a80c583df2c8a383686d6 (patch)
treeba6049cf83600cb3afe6d9e8d52c0b9480b5b22b /Modules/main.c
parent9e66ac683cce9f6e4abda7d01836dab70eeefb49 (diff)
downloadcpython-aa93642a35ed570ba91a80c583df2c8a383686d6.zip
cpython-aa93642a35ed570ba91a80c583df2c8a383686d6.tar.gz
cpython-aa93642a35ed570ba91a80c583df2c8a383686d6.tar.bz2
Issue #14605: Use None in sys.path_importer_cache to represent no
finder instead of using some (now non-existent) implicit finder.
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;