commit | a6473f9cfd13358b003b8353cd722ca19352817c | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Fri Jul 13 13:57:03 2012 -0400 |
committer | Brett Cannon <brett@python.org> | Fri Jul 13 13:57:03 2012 -0400 |
tree | 3533968bc996698be3bd30eb80ecb5b6dea05f85 | |
parent | d104eef118bda30725ac087e06252a5a3525e2df [diff] |
Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use 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.