diff options
-rw-r--r-- | Python/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 9773687..47839c5 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1946,6 +1946,7 @@ find_module_path_list(PyObject *fullname, PyObject *name, if (_Py_stat(filename, &statbuf) != 0 || S_ISDIR(statbuf.st_mode)) { + /* it doesn't exist, or it's a directory */ Py_DECREF(filename); continue; } |