mirror of
https://github.com/python/cpython.git
synced 2025-07-12 22:05:16 +00:00
Lib/imp.py for imp.source_from_cache() instead of its own C version. Also change PyImport_ExecCodeModuleObject() to not infer the source path from the bytecode path like PyImport_ExecCodeModuleWithPathnames() does. This makes the function less magical. This also has the side-effect of removing all uses of MAXPATHLEN in Python/import.c which can cause failures on really long filenames.
This commit is contained in:
parent
d104eef118
commit
a6473f9cfd
6 changed files with 4086 additions and 4065 deletions
7871
Python/importlib.h
7871
Python/importlib.h
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue