| commit | 1cd701732fe324adace84a955d48a3dc7753ee59 | [log] [tgz] |
|---|---|---|
| author | Tim Peters <tim.peters@gmail.com> | Mon Aug 02 03:52:12 2004 +0000 |
| committer | Tim Peters <tim.peters@gmail.com> | Mon Aug 02 03:52:12 2004 +0000 |
| tree | 35ba15417c614a36efd6c6dac1e080abb725dfb0 | |
| parent | 94f9b8693038f25a800c3cd795c56c92b6f3541d [diff] |
PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases.
PyImport_ReloadModule(): restore the module to sys.modules in error cases.
load_package(): semantic-neutral refactoring from an earlier stab at
this patch; giving it a common error exit made the code
easier to follow, so retaining that part.
_RemoveModule(): new little utility to delete a key from sys.modules.