commit | 62c7015e89cbdedb5218d4fedd45f971885f67a8 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Sep 23 09:39:24 2023 +0300 |
committer | GitHub <noreply@github.com> | Sat Sep 23 09:39:24 2023 +0300 |
tree | a6c8a17353fbaf884de9d370f176f8f087bab26f | |
parent | b8d1744e7ba87a4057350fdfd788b5621095fc59 [diff] |
gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522) PyImport_GetImporter() now sets RuntimeError if it fails to get sys.path_hooks or sys.path_importer_cache or they are not list and dict correspondingly. Previously it could return NULL without setting error in obscure cases, crash or raise SystemError if these attributes have wrong type.